mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
restore the bitmap in hDCMem before deleting the DC
svn path=/trunk/; revision=21372
This commit is contained in:
@@ -211,11 +211,13 @@ ImageEditWndRepaint(PEDIT_WND_INFO Info,
|
||||
HDC hDC,
|
||||
LPPAINTSTRUCT lpps)
|
||||
{
|
||||
HBITMAP hOldBitmap;
|
||||
|
||||
if (Info->hBitmap)
|
||||
{
|
||||
Info->hDCMem = CreateCompatibleDC(hDC);
|
||||
|
||||
SelectObject(Info->hDCMem,
|
||||
hOldBitmap = (HBITMAP) SelectObject(Info->hDCMem,
|
||||
Info->hBitmap);
|
||||
|
||||
BitBlt(hDC,
|
||||
@@ -228,6 +230,8 @@ ImageEditWndRepaint(PEDIT_WND_INFO Info,
|
||||
0,
|
||||
SRCCOPY);
|
||||
|
||||
Info->hBitmap = SelectObject(Info->hDCMem, hOldBitmap);
|
||||
|
||||
DeleteDC(Info->hDCMem);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user