From 657d4463e4b7f969c3fc80c016a854d84bdac488 Mon Sep 17 00:00:00 2001 From: Rafal Harabien Date: Tue, 2 Aug 2011 16:29:33 +0000 Subject: [PATCH] [WIN32K] - Fix a typo. Spotted by Giannis Adamopoulos svn path=/trunk/; revision=53032 --- reactos/subsystems/win32/win32k/ntuser/painting.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/painting.c b/reactos/subsystems/win32/win32k/ntuser/painting.c index 749883a823d..1e66ce50ce3 100644 --- a/reactos/subsystems/win32/win32k/ntuser/painting.c +++ b/reactos/subsystems/win32/win32k/ntuser/painting.c @@ -1759,7 +1759,7 @@ BOOL UserDrawCaption( { 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); }