Commit cef1f216 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11: Remove unneeded check on bitmap depth, screen bpp cannot be 15.

parent 0d30daa8
......@@ -122,9 +122,7 @@ BOOL X11DRV_CreateBitmap( X11DRV_PDEVICE *physDev, HBITMAP hbitmap, LPVOID bmBit
if (bitmap.bmPlanes != 1) return FALSE;
/* check if bpp is compatible with screen depth */
if (!((bitmap.bmBitsPixel == 1) ||
(bitmap.bmBitsPixel == screen_bpp) ||
(bitmap.bmBitsPixel == 16 && screen_bpp == 15))) /* TODO: Confirm this */
if (!((bitmap.bmBitsPixel == 1) || (bitmap.bmBitsPixel == screen_bpp)))
{
ERR("Trying to make bitmap with planes=%d, bpp=%d\n",
bitmap.bmPlanes, bitmap.bmBitsPixel);
......
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