[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

How to set widgets color depth ?



 
I'm developing a gtk application for Windows and SGI system.
When I compile my application under SGI (irix 6.4) I have problems in setting
depth for my widgets (i need True colors).
 
when i call  gtk_widget_get_default_visual()->depth I obtain 8 bit
and if I ask for the best depth for the system I obtain 24 bit with this:
 
visual=gdk_visual_get_best_with_depth ( gdk_visual_get_best_depth())
visual->depth

then i think i can make my widgets true-color and I do:
 
 gtk_widget_set_default_visual(visual);
 
but when I try to show a window, an error occurs:
 
 Gdk-ERROR **: badMath (invalid parameter attributes) 
 serial error_code 8 request_code 1 minor_code 0
 
 aborting...
 Abort (core dumped)
 
What's wrong?

Thank very much.
 
 
 
Mastro Matteo Tesser
Mastro Nicola Ferruzzi
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]