Module: wine Branch: master Commit: f2547427c070bbc6430a866da93da57180efdbad URL: http://source.winehq.org/git/wine.git/?a=commit;h=f2547427c070bbc6430a866da9...
Author: Stefan Dösinger stefan@codeweavers.com Date: Fri Dec 7 20:27:57 2007 +0100
gdi32: Test the bit depth of compatible bitmaps explicitly.
---
dlls/gdi32/tests/bitmap.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/gdi32/tests/bitmap.c b/dlls/gdi32/tests/bitmap.c index 7183e31..a895f34 100644 --- a/dlls/gdi32/tests/bitmap.c +++ b/dlls/gdi32/tests/bitmap.c @@ -182,7 +182,8 @@ static void test_createdibitmap(void)
/* Now select a polychrome bitmap into the dc and we expect screen_depth bitmaps again */ - hbm_colour = CreateCompatibleBitmap(hdc, 1, 1); + hbm_colour = CreateCompatibleBitmap(hdc, bmih.biWidth, bmih.biHeight); + test_bitmap_info(hbm_colour, screen_depth, &bmih); hbm_old = SelectObject(hdcmem, hbm_colour);
/* First try 32 bits */