Transform correctly the coordinates.
[reactos.git] / reactos / subsys / win32k / objects / bitmaps.c
index fe11e36..1800c5f 100644 (file)
@@ -116,6 +116,8 @@ NtGdiBitBlt(
        DestRect.right  = XDest+Width;
        DestRect.bottom = YDest+Height;
 
+        IntLPtoDP(DCDest, (LPPOINT)&DestRect, 2);
+
        SourcePoint.x = XSrc;
        SourcePoint.y = YSrc;
 
@@ -1524,7 +1526,7 @@ BITMAPOBJ_CopyBitmap(HBITMAP  hBitmap)
        res = IntCreateBitmapIndirect(&bm);
        if(res)
        {
-               char *buf;
+               PBYTE buf;
 
                buf = ExAllocatePoolWithTag (PagedPool, bm.bmWidthBytes * abs(bm.bmHeight), TAG_BITMAP);
                NtGdiGetBitmapBits (hBitmap, bm.bmWidthBytes * abs(bm.bmHeight), buf);