07-26-2004
thanks for that in depth comment!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi all,
I don't know the first thing about Unix, but I would like to learn.
I would like to know what the difference between Linux and Unix is, and where I can obtain a copy of either.
Thanks
:o (8 Replies)
Discussion started by: ThisIsNewToMe
8 Replies
2. UNIX for Dummies Questions & Answers
hi,
i am a total dummy of unix. i am not used to the unix convention and practice.
currently i am trying to install and use the solaris GUI based ftp program called gtk+ (gtk+-1.2.10-sol8-sparc-local.gz). i downloaded it and installed it successfully on my Sun Solaris sparc version 8.
... (4 Replies)
Discussion started by: champion
4 Replies
3. Linux
I am very new to the linux environment. I have been interested in it for years but have just recently had the courage to pop that install disk into my PC. Because of it's ease of installation, I installed Mandrake 9.1 and I'm running KDE3.1 for my GUI. Right now I'm trying to conquer the world... (5 Replies)
Discussion started by: n0data
5 Replies
4. Post Here to Contact Site Administrators and Moderators
Hai,
I am santhosh,I am fresher to this Forum,I want details about GTK+ Project(All Widgets--- I mean how they are programming in callback.c file).
if it possible please send information regarding this Glade tool.I want to interface glade with Modbus protocol,
Thankyou
with best regards,... (0 Replies)
Discussion started by: santhosh.linux
0 Replies
5. Programming
Is GUI programming without GTK possible? If so, how? Or what libraries should I #include? Google seems to tell me that GUI programming in C++ is much more popular then in C. I'm assuming because of the Object Orientedness (if that is even a word)?
Before you say things like "Search the forums",... (5 Replies)
Discussion started by: Octal
5 Replies
6. Shell Programming and Scripting
Hi all
I have been googling for ages but with no prevail hence this new thread.
I would like to add a new line after a particular text string. For example, assume the original file contains the following text:
..
line1
line2
line3
..
I would like to insert the text string... (3 Replies)
Discussion started by: robbiegregg
3 Replies
7. Linux
Hello!
I have a problem with a GTK themes in KDE environment.
When I set the GTK style in application's styles in control center, it's looks like this screen:
Arrows on "places" and "files": In GTK it's a "GtkTreeView" widget class and I can't separate they. It's only one color for a two... (2 Replies)
Discussion started by: Kareoliz
2 Replies
8. Programming
i have downloaded <libncurses5-dev_5.7+20101128-1_i386.deb> and <ndk++-0.0.1alpha4.tar.bz2> which contains the header files curses.h and gtk/gtk.h ..
i have also included them using ..
#include "/home/ball/Desktop/Sudoku/project/libncurses5-dev_5.7+20101128-1_i386/usr/include/curses.h"
... (2 Replies)
Discussion started by: upvan111
2 Replies
9. What is on Your Mind?
I am an old man and i find modern times not so much confusing but outright - to use the correct word - "smart". Frankly, many things looked better back then - but especially the future. So today, instead of taking my medication, i will take a more "wholesome" approach and vent off some steam by... (18 Replies)
Discussion started by: bakunin
18 Replies
LEARN ABOUT OPENDARWIN
desktop_color_depth
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)