It reports 42 bits per pixel on my screen.
As can be seen here in the gdk visual for win32 source (dead link - thanks gnome!)
https://git.gnome.org/browse/gtk+/tree/gdk/win32/gdkvisual-win32.c#n208
It says:
g_error ("_gdk_visual_init: unsupported BITSPIXEL: %d\n", bitspixel); system_visual->depth = bitspixel; system_visual->byte_order = GDK_LSB_FIRST; system_visual->bits_per_rgb = 42; /* Not used? */
Now, I don't see the warning at all... but at least it doesn't crash.
We don't use the bits_per_rgb
value for anything either, not yet anyway. But we should fix this before something bad happens.
For the record, on my system:
GetDeviceCaps(SIZEPALETTE)
returns 0
GetDeviceCaps(BITSPIXEL)
returns 32
No idea why we end up in the codepath that sets it to 42...
Note: GTK3 is also affected..
Not the first time that GTK gets confused about pixel depth either: #654.
Milestone renamed
Milestone renamed
Can no longer reproduce.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/698