mirror of
https://github.com/reactos/reactos.git
synced 2024-08-04 02:20:54 +00:00
-don't delete a DC return from BeginPaint
-DPRINT1 -> DPRINT svn path=/trunk/; revision=39135
This commit is contained in:
parent
906bea5252
commit
bce5ca675d
|
@ -72,7 +72,6 @@ ImageView_DrawImage(HWND hwnd)
|
||||||
if (!graphics)
|
if (!graphics)
|
||||||
{
|
{
|
||||||
DPRINT1("GdipCreateFromHDC() failed\n");
|
DPRINT1("GdipCreateFromHDC() failed\n");
|
||||||
DeleteDC(hdc);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -80,7 +79,6 @@ ImageView_DrawImage(HWND hwnd)
|
||||||
if (!image)
|
if (!image)
|
||||||
{
|
{
|
||||||
DPRINT1("GdipLoadImageFromFile() failed\n");
|
DPRINT1("GdipLoadImageFromFile() failed\n");
|
||||||
DeleteDC(hdc);
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,11 +149,10 @@ ImageView_DrawImage(HWND hwnd)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
DPRINT1("x = %d\ny = %d\nWidth = %d\nHeight = %d\n\nrect.right = %d\nrect.bottom = %d\n\nuImgWidth = %d\nuImgHeight = %d", x, y, width, height, rect.right, rect.bottom, uImgWidth, uImgHeight);
|
DPRINT("x = %d\ny = %d\nWidth = %d\nHeight = %d\n\nrect.right = %d\nrect.bottom = %d\n\nuImgWidth = %d\nuImgHeight = %d\n", x, y, width, height, rect.right, rect.bottom, uImgWidth, uImgHeight);
|
||||||
GdipDrawImageRect(graphics, image, x, y, width, height);
|
GdipDrawImageRect(graphics, image, x, y, width, height);
|
||||||
}
|
}
|
||||||
|
|
||||||
DeleteDC(hdc);
|
|
||||||
EndPaint(hwnd, &ps);
|
EndPaint(hwnd, &ps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue