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)
: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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)