Patola
YaBB Newbies
Offline
Cláudio Sampaio
Posts: 2
Campinas, SP, Brazil
Gender:
|
Hello, I would like to raise a question about the widget problem that occurs with Hyphy on color depths smaller than 24 bits. I myself use 16 bits of color depth and it would be too much a hassle to switch that to 24 bits because the display gets a lot slower and the memory consumption is much bigger. But hyphy insists on creating windows with 24 bits depth... Ok, I have traced the problem to GUI/HYPlatformGraphicPane.cpp - these two lines:
73 thePane = gdk_pixmap_new (NULL, w, h, 24/*d<24?d:24*/); 134 thePane = gdk_pixmap_new (NULL, w, h, 24/*d<24?d:24*/);
I don't understand some of the syntax here: the test "24/*d<24" is ok, but what about "24*/"? What does it mean?
Nevertheless, I noticed that the effect here is that the color depth is always 24. Because of this, the letters and graphics become invisible on color depths smaller than 24... The solution I've come was just to change the two lines to: thePane = gdk_pixmap_new (NULL, w, h, 16);
It works in 16 and 24 bits color depths. But I wonder, why reserve a space of 16 million colors for just a few colored fonts or different line colors? Is it really necessary? I think that even a colorspace of 256 colors (8 bits) would be more than enough for that. I did not trace the value of "d" to see if it was different depending on the display - I was satisfied as long as my problem was resolved.
|