Commit 1c2ff71c authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Set X11DRV_DeviceCaps.numColors according to doc (fixes Cubase VST24

startup problem).
parent afe9bb81
......@@ -193,6 +193,12 @@ BOOL X11DRV_GDI_Initialize(void)
X11DRV_DevCaps.horzRes = screen_width;
X11DRV_DevCaps.vertRes = screen_height;
X11DRV_DevCaps.bitsPixel = screen_depth;
/* MSDN: Number of entries in the device's color table, if the device has
* a color depth of no more than 8 bits per pixel.For devices with greater
* color depths, -1 is returned.
*/
X11DRV_DevCaps.numColors = (screen_depth>8)?-1:(1<<screen_depth);
/* Resolution will be adjusted during the font init */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment