Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

desktop_color_depth(3alleg4) [osx 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 for Dummies Questions & Answers

ridiculous resolution in Xwindows

Happy Holidays everybody. I successfully installed linux 7.1 on my desktop. At first I couldn't get Xwindow to start. Kept getting error message: "depth 16 not supported". So I reinstalled and made it 8 bit color depth with 1024 x 786 resolution, and Xwindow started this time around but everything... (3 Replies)
Discussion started by: tmanpakdee
3 Replies

2. UNIX Desktop Questions & Answers

Using a Sun Ultra 5 at work

I wouldn't call myself exactly new to Unix. I've played with Linux before so I can get around alright. I just have never really learned the basics, like setting a user's path. How do I do that on my Sun station? Obvioulsly, I've got several different bins, but I can only use the commands in... (1 Reply)
Discussion started by: skinnell2
1 Replies

3. UNIX Desktop Questions & Answers

Cyrillic under X

RedHat 7.2, Gnome 1.4. tried "everything" but still can't figure out how to make cyrillic characters work normally. actually I don't care about anything other than Opera (6.01). I need it to display cyrillic normally. If anyone knows the solution plz help. TIA!!! (2 Replies)
Discussion started by: D-Lexy
2 Replies

4. 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

5. UNIX Desktop Questions & Answers

clear console

is there any way i can make my console clear? ive found out how to make it so i can see throught it, but all i get is the desktop.... i wanna be able to read a text document which i have open behind the console.... this is in kde3.1 (3 Replies)
Discussion started by: punk000
3 Replies

6. 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

7. 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

8. 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

9. 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

10. 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

11. 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

12. UNIX Desktop Questions & Answers

change in line

i have a line that has ",,", i need to change it to "," ; But i have it more than one time in the same line , sub(",,",",",$0) just sub the first one in the line? ---------- Post updated at 08:15 AM ---------- Previous update was at 08:15 AM ---------- using AWK please (2 Replies)
Discussion started by: Reham.Donia
2 Replies

13. UNIX Desktop Questions & Answers

UNIX reference books

Hi , Can any one send me the best unix book to start. Actually i know the very basic but i need to learn in depth. Please send me the pdf or link.It would be very helpful if you send ASAP (2 Replies)
Discussion started by: kkalyan
2 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