[ros-diffs] [rharabien] 53032: [WIN32K] - Fix a typo. Spotted by Giannis Adamopoulos
rharabien at svn.reactos.org
rharabien at svn.reactos.org
Tue Aug 2 16:29:34 UTC 2011
Author: rharabien
Date: Tue Aug 2 16:29:33 2011
New Revision: 53032
URL: http://svn.reactos.org/svn/reactos?rev=53032&view=rev
Log:
[WIN32K]
- Fix a typo. Spotted by Giannis Adamopoulos
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/painting.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ntuser/painting.c?rev=53032&r1=53031&r2=53032&view=diff
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/painting.c [iso-8859-1] Tue Aug 2 16:29:33 2011
@@ -1759,7 +1759,7 @@
{
LONG cx = UserGetSystemMetrics(SM_CXSMICON);
LONG cy = UserGetSystemMetrics(SM_CYSMICON);
- LONG x = Rect.left - cx/2 + 1 + (Rect.bottom - Rect.left)/2;
+ LONG x = Rect.left - cx/2 + 1 + (Rect.bottom - Rect.top)/2; // this is really what Window does
LONG y = (Rect.top + Rect.bottom)/2 - cy/2; // center
UserDrawIconEx(hDc, x, y, pIcon, cx, cy, 0, NULL, DI_NORMAL);
}
More information about the Ros-diffs
mailing list