HBITMAP res;
BITMAP bm;
BITMAPOBJ *Bitmap, *resBitmap;
+ SIZEL Size;
if (hBitmap == NULL)
{
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;