Module: wine Branch: master Commit: 9c225fc3f962f587459774f2c400720b436ba696 URL: https://source.winehq.org/git/wine.git/?a=commit;h=9c225fc3f962f587459774f2c...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Apr 13 14:33:58 2018 +0200
user32: Fix position of the small icon in the caption bar.
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/user32/nonclient.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c index fcf32f0..3f3d96a 100644 --- a/dlls/user32/nonclient.c +++ b/dlls/user32/nonclient.c @@ -703,7 +703,7 @@ BOOL NC_DrawSysButton (HWND hwnd, HDC hdc, BOOL down)
NC_GetInsideRect( hwnd, COORDS_WINDOW, &rect, style, ex_style ); pt.x = rect.left + 2; - pt.y = (rect.top + GetSystemMetrics(SM_CYCAPTION) - GetSystemMetrics(SM_CYSMICON)) / 2; + pt.y = rect.top + (GetSystemMetrics(SM_CYCAPTION) - GetSystemMetrics(SM_CYSMICON)) / 2; DrawIconEx (hdc, pt.x, pt.y, hIcon, GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), 0, 0, DI_NORMAL);