mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +00:00
- Cleanup leftovers and bugs from GreatLord's fix. I think this is my last "postfix" of GreatLord's commits to trunk.
svn path=/trunk/; revision=33886
This commit is contained in:
parent
f984375fa8
commit
3f4244aafc
|
@ -806,10 +806,13 @@ NtGdiStretchDIBitsInternal(
|
|||
DPRINT1("NtGdiCreateCompatibleBitmap fail create bitmap\n");
|
||||
DPRINT1("hDC : 0x%08x \n", hDC);
|
||||
DPRINT1("BitsInfo->bmiHeader.biWidth : 0x%08x \n", BitsInfo->bmiHeader.biWidth);
|
||||
DPRINT1("BitsInfo->bmiHeader.biWidth : 0x%08x \n", BitsInfo->bmiHeader.biHeight);
|
||||
DPRINT1("BitsInfo->bmiHeader.biHeight : 0x%08x \n", BitsInfo->bmiHeader.biHeight);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Select the bitmap into hdcMem, and save a handle to the old bitmap */
|
||||
hOldBitmap = NtGdiSelectBitmap(hdcMem, hBitmap);
|
||||
|
||||
if(Usage == DIB_PAL_COLORS)
|
||||
{
|
||||
hPal = NtGdiGetDCObject(hDC, GDI_OBJECT_TYPE_PALETTE);
|
||||
|
@ -859,10 +862,8 @@ NtGdiStretchDIBitsInternal(
|
|||
if(hPal)
|
||||
GdiSelectPalette(hdcMem, hPal, FALSE);
|
||||
|
||||
if (hOldBitmap != NULL)
|
||||
{
|
||||
NtGdiSelectBitmap(hdcMem, hOldBitmap);
|
||||
}
|
||||
if (hOldBitmap)
|
||||
NtGdiSelectBitmap(hdcMem, hOldBitmap);
|
||||
|
||||
NtGdiDeleteObjectApp(hdcMem);
|
||||
|
||||
|
|
Loading…
Reference in a new issue