Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

desktop_color_depth(3alleg4) [debian man page]

desktop_color_depth(3alleg4)					  Allegro manual				      desktop_color_depth(3alleg4)

NAME
desktop_color_depth - Finds out the desktop color depth. Allegro game programming library. SYNOPSIS
#include <allegro.h> int desktop_color_depth(); DESCRIPTION
Finds out the currently selected desktop color depth. You can use this information to make your program use the same color depth as the desktop, which will likely make it run faster because the graphic driver won't be doing unnecessary color conversions behind your back. Under some OSes, switching to a full screen graphics mode may automatically change the desktop color depth. You have, therefore, to call this function before setting any graphics mode in order to retrieve the real desktop color depth. Example: allegro_init(); ... if ((depth = desktop_color_depth()) != 0) { set_color_depth(depth); } RETURN VALUE
Returns the color depth or zero on platforms where this information is not available or does not apply. SEE ALSO
get_desktop_resolution(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4) Allegro version 4.4.2 desktop_color_depth(3alleg4)

Check Out this Related Man Page

desktop_color_depth(3alleg4)					  Allegro manual				      desktop_color_depth(3alleg4)

NAME
desktop_color_depth - Finds out the desktop color depth. Allegro game programming library. SYNOPSIS
#include <allegro.h> int desktop_color_depth(); DESCRIPTION
Finds out the currently selected desktop color depth. You can use this information to make your program use the same color depth as the desktop, which will likely make it run faster because the graphic driver won't be doing unnecessary color conversions behind your back. Under some OSes, switching to a full screen graphics mode may automatically change the desktop color depth. You have, therefore, to call this function before setting any graphics mode in order to retrieve the real desktop color depth. Example: allegro_init(); ... if ((depth = desktop_color_depth()) != 0) { set_color_depth(depth); } RETURN VALUE
Returns the color depth or zero on platforms where this information is not available or does not apply. SEE ALSO
get_desktop_resolution(3alleg4), set_color_depth(3alleg4), set_gfx_mode(3alleg4) Allegro version 4.4.2 desktop_color_depth(3alleg4)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX Desktop Questions & Answers

Hackers!!!!!

:o :oIve heard that there are some security issues with Unix/Linux.....im running SuSE 8.0 and i was wondering if anyone could help me out by hookin me up with some nice security programs or loopholes i can fix....thanx...p3ace:o :o And the sky opened...and it rained shit. - Anonymous (8 Replies)
Discussion started by: R34P3R
8 Replies

2. UNIX Desktop Questions & Answers

Change time source?

I need to change the time on my SUN box, it is five minutes fast. (4 Replies)
Discussion started by: michelemcdonald
4 Replies

3. OS X (Apple)

Running Applications on my desktop?.....

Hello, I am running MAC OS X PANTHER I was wandering if anyone knew how to make the desired applications run on my desktop? I know how to do this if I make my own apps. using Realbasic, but what if I want to run CPU monitor, calender, CPU temperature, etc...? I know there has to be a way to do... (8 Replies)
Discussion started by: adamcb
8 Replies

4. Shell Programming and Scripting

non GNU ls and color on a unix system

Where I work, ls --color is not legal, and only throws illegal option errors back at me. So last week I set out to get some colors going. I have two options: 1) Find someone else's script who's already done this. Well, after 5 days of searching and finding hundreds of references to "ls... (7 Replies)
Discussion started by: cvweiss
7 Replies

5. BSD

setting up OpenBSD 4.0

ok these questions may be a little silly but I just started using OpenBSD as I came from Linux... 1. How do I make my desktop in X all snazzy like, I have wallpapers that need to be used. while I admit it will mainly be used for things I wont need a wallpaper for, you just never know :p, im... (4 Replies)
Discussion started by: Siphter
4 Replies

6. UNIX Desktop Questions & Answers

Sid

What is SID and how to gahter information about that ?? Is this the right forum to ask this question ? If not then please help me out.. (6 Replies)
Discussion started by: risshanth
6 Replies

7. UNIX Desktop Questions & Answers

More than transposing!

Hi everyone, I have a poblem like that: I have a file which includes data looks like: 0.65214 0.3597 1.0 0.65244 0.3502 1.0 0.65273 0.3553 1.0 0.65305 0.3544 1.0 0.65327 0.3505 1.0 0.65359 0.3516 1.0 0.65578 0.6464 1.0 0.65605 0.6453 1.0 0.65633 0.6437 1.0 0.65660 0.6488 1.0... (3 Replies)
Discussion started by: bulash
3 Replies

8. Red Hat

X Server won't start (Redhat 9) HELP

im running rh 9 on my vmware, i tryed changing the graphics card mode to resize the desktop, after restarting i get a message X Server cannot start. then it takes me to the consol screen to log on, "im new to using linux as of last night" It would be helpfull if anyone can help me resolve... (4 Replies)
Discussion started by: aoteg
4 Replies

9. AIX

AIX on desktop PC

Hi, Apologize if the information has been posted on a previous thread. Tried to google this forum and the search engine but could not find the information I was looking for. I'm trying to learn AIX. Although, there are a lot many books on the web, but a hands on approach is always the best. ... (5 Replies)
Discussion started by: dsids
5 Replies

10. Shell Programming and Scripting

Date format

Hi, I need to conver the date format to binary and then subract it by one which will result me an output with yesterdays date and use it.. So that i will use the out and delete all the folders which are of minus one days.i.e if today is 2010-03-18 (this is a folder format at some xyz location).... (59 Replies)
Discussion started by: j_panky
59 Replies

11. UNIX Desktop Questions & Answers

Cant Set 1024*768 resolution in fedora 11

This is my very first post to the forum ,so if i my mess up here please let me know. Now coming to the problem i am using fedora 11 with a nividia 8600GT graphic card on my desktop, but when i try to change the resolution i am able to select between two resolutions i.e. 800*600 and 640*480. I... (3 Replies)
Discussion started by: rohit_shetty
3 Replies

12. UNIX Desktop Questions & Answers

Vintage unix

Hi, this my be a weird request but I'm wondering if it's possible to instill a vintage unix (like early 1980's) onto a laptop or desktop. If so how I would I go about downloading and installing? I'm mainly wanting to do this as an little porject and some funsies for me. Thanks. (11 Replies)
Discussion started by: dado00
11 Replies

13. Windows & DOS: Issues & Discussions

How to hide ip address of the desktop?

How to hide the IP address of the desktop that I am using. Say for example each desktop will have its own IP address assigned. I want to hide the IP address of the desktop I am using so that nobody should able to find out the desktop that I am using with IP address. Regards, Maddy (12 Replies)
Discussion started by: Maddy123
12 Replies

14. UNIX for Dummies Questions & Answers

GUI forwarding without desktop installed

Hi everyone I'm installing a homeserver running debain without a desktop GUI as its not needed The box is a low power all in one, which won't have a monitor If I've not installed the desktop part, can I still ssh to the box and forward GUI applications with Xming when needed to a windows... (5 Replies)
Discussion started by: tofa83
5 Replies