- Fix a typo. Spotted by Giannis Adamopoulos

svn path=/trunk/; revision=53032
This commit is contained in:
Rafal Harabien 2011-08-02 16:29:33 +00:00
parent b81d61b5e8
commit 657d4463e4

View file

@ -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);
}