Author: tkreuzer
Date: Thu Aug 9 18:42:33 2007
New Revision: 28265
URL:
http://svn.reactos.org/svn/reactos?rev=28265&view=rev
Log:
fix icon display
Modified:
trunk/reactos/subsystems/win32/win32k/objects/bitmaps.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/bitmaps.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/bitmaps.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/bitmaps.c Thu Aug 9 18:42:33 2007
@@ -1565,6 +1565,7 @@
HBITMAP res;
BITMAP bm;
BITMAPOBJ *Bitmap, *resBitmap;
+ SIZEL Size;
if (hBitmap == NULL)
{
@@ -1582,11 +1583,14 @@
if (Bitmap->SurfObj.lDelta >= 0)
bm.bmHeight = -bm.bmHeight;
- res = NtGdiCreateBitmap(bm.bmWidth,
- bm.bmHeight,
- bm.bmPlanes,
- bm.bmBitsPixel,
- bm.bmBits);
+ Size.cx = abs(bm.bmWidth);
+ Size.cy = abs(bm.bmHeight);
+ res = IntCreateBitmap(Size,
+ bm.bmWidthBytes,
+ BitmapFormat(bm.bmBitsPixel * bm.bmPlanes, BI_RGB),
+ (bm.bmHeight < 0 ? BMF_TOPDOWN : 0) | BMF_NOZEROINIT,
+ NULL);
+
if(res)
{
PBYTE buf;