Alexandre Julliard : winex11: Remove unneeded check on bitmap depth, screen bpp cannot be 15.
Alexandre Julliard
julliard at winehq.org
Mon Feb 4 08:43:17 CST 2008
Module: wine
Branch: master
Commit: cef1f21624dc3af3b9719bab0fa40cabc8eec681
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cef1f21624dc3af3b9719bab0fa40cabc8eec681
Author: Alexandre Julliard <julliard at winehq.org>
Date: Mon Feb 4 14:37:00 2008 +0100
winex11: Remove unneeded check on bitmap depth, screen bpp cannot be 15.
---
dlls/winex11.drv/bitmap.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/winex11.drv/bitmap.c b/dlls/winex11.drv/bitmap.c
index fffcab1..0bcb087 100644
--- a/dlls/winex11.drv/bitmap.c
+++ b/dlls/winex11.drv/bitmap.c
@@ -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);
More information about the wine-cvs
mailing list