Author: gedmurphy
Date: Tue Jan 16 02:37:44 2007
New Revision: 25477
URL:
http://svn.reactos.org/svn/reactos?rev=25477&view=rev
Log:
use IC instead of DC
Modified:
trunk/reactos/dll/win32/user32/windows/icon.c
Modified: trunk/reactos/dll/win32/user32/windows/icon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/i…
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/icon.c (original)
+++ trunk/reactos/dll/win32/user32/windows/icon.c Tue Jan 16 02:37:44 2007
@@ -661,9 +661,9 @@
}
else
{
- HDC hdc = GetDC(0);
+ HDC hdc = CreateICW(NULL, NULL, NULL, NULL);
ColorBits = GetDeviceCaps(hdc, BITSPIXEL);
- ReleaseDC(0, hdc);
+ DeleteDC(hdc);
}
if(bIcon)