Set X11DRV_DeviceCaps.numColors according to doc (fixes Cubase VST24

startup problem).
This commit is contained in:
Marcus Meissner 2000-08-20 18:48:24 +00:00 committed by Alexandre Julliard
parent afe9bb814d
commit 1c2ff71cef
1 changed files with 6 additions and 0 deletions

View File

@ -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 */