mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Since we have created the off-screen bitmap, let's actually use it
svn path=/trunk/; revision=7124
This commit is contained in:
parent
b3720ef867
commit
5ebfb618b2
1 changed files with 6 additions and 4 deletions
|
@ -16,7 +16,7 @@
|
|||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
*/
|
||||
/* $Id: cursoricon.c,v 1.39 2003/12/14 13:26:20 weiden Exp $ */
|
||||
/* $Id: cursoricon.c,v 1.40 2003/12/18 23:04:54 gvg Exp $ */
|
||||
|
||||
#undef WIN32_LEAN_AND_MEAN
|
||||
|
||||
|
@ -1082,7 +1082,7 @@ NtUserDrawIconEx(
|
|||
COLORREF oldFg, oldBg;
|
||||
HDC hdcMem, hdcOff = (HDC)0;
|
||||
HBITMAP hbmOff = (HBITMAP)0;
|
||||
HGDIOBJ hOldOff, hOldMem;
|
||||
HGDIOBJ hOldOffBrush, hOldOffBmp, hOldMem;
|
||||
BOOL Ret = FALSE;
|
||||
#if CANSTRETCHBLT
|
||||
INT nStretchMode;
|
||||
|
@ -1152,7 +1152,8 @@ NtUserDrawIconEx(
|
|||
NtGdiDeleteDC(hdcOff);
|
||||
goto done;
|
||||
}
|
||||
hOldOff = NtGdiSelectObject(hdcOff, hbrFlickerFreeDraw);
|
||||
hOldOffBrush = NtGdiSelectObject(hdcOff, hbrFlickerFreeDraw);
|
||||
hOldOffBmp = NtGdiSelectObject(hdcOff, hbmOff);
|
||||
NtGdiPatBlt(hdcOff, 0, 0, r.right, r.bottom, PATCOPY);
|
||||
NtGdiSelectObject(hdcOff, hbmOff);
|
||||
}
|
||||
|
@ -1223,7 +1224,8 @@ NtUserDrawIconEx(
|
|||
if(DoFlickerFree)
|
||||
{
|
||||
|
||||
NtGdiSelectObject(hdcOff, hOldOff);
|
||||
NtGdiSelectObject(hdcOff, hOldOffBmp);
|
||||
NtGdiSelectObject(hdcOff, hOldOffBrush);
|
||||
NtGdiDeleteObject(hbmOff);
|
||||
NtGdiDeleteDC(hdcOff);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue