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

This commit is contained in:
Alexandre Julliard 2008-02-04 14:37:00 +01:00
parent 0d30daa8e4
commit cef1f21624
1 changed files with 1 additions and 3 deletions

View File

@ -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);