From b7bb7861076d471baf483197f2d53ae1ea3f4ecb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 2 May 2012 12:10:59 +0200 Subject: [PATCH] wing32: Use the correct constant names for CreateDIBSection. --- dlls/wing.dll16/wing.c | 2 +- dlls/wing32/wing32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/wing.dll16/wing.c b/dlls/wing.dll16/wing.c index fb4aa56daeb..e1f2c070955 100644 --- a/dlls/wing.dll16/wing.c +++ b/dlls/wing.dll16/wing.c @@ -178,7 +178,7 @@ HBITMAP16 WINAPI WinGCreateBitmap16(HDC16 hdc, BITMAPINFO *bmpi, SEGPTR *bits) TRACE("(%d,%p,%p): create %dx%dx%d bitmap\n", hdc, bmpi, bits, bmpi->bmiHeader.biWidth, bmpi->bmiHeader.biHeight, bmpi->bmiHeader.biPlanes); - hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, BI_RGB, &bits32, 0, 0 ); + hbitmap = CreateDIBSection( HDC_32(hdc), bmpi, DIB_RGB_COLORS, &bits32, 0, 0 ); if (hbitmap) { SEGPTR segptr = alloc_segptr_bits( hbitmap, bits32 ); diff --git a/dlls/wing32/wing32.c b/dlls/wing32/wing32.c index ac749867e9f..7ec591417ac 100644 --- a/dlls/wing32/wing32.c +++ b/dlls/wing32/wing32.c @@ -60,7 +60,7 @@ BOOL WINAPI WinGRecommendDIBFormat( BITMAPINFO *bmi ) */ HBITMAP WINAPI WinGCreateBitmap( HDC hdc, BITMAPINFO *bmi, void **bits ) { - return CreateDIBSection( hdc, bmi, 0, bits, 0, 0 ); + return CreateDIBSection( hdc, bmi, DIB_RGB_COLORS, bits, 0, 0 ); } /***********************************************************************