user32: Fix position of the small icon in the caption bar.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
d4d12801bc
commit
9c225fc3f9
|
@ -703,7 +703,7 @@ BOOL NC_DrawSysButton (HWND hwnd, HDC hdc, BOOL down)
|
||||||
|
|
||||||
NC_GetInsideRect( hwnd, COORDS_WINDOW, &rect, style, ex_style );
|
NC_GetInsideRect( hwnd, COORDS_WINDOW, &rect, style, ex_style );
|
||||||
pt.x = rect.left + 2;
|
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,
|
DrawIconEx (hdc, pt.x, pt.y, hIcon,
|
||||||
GetSystemMetrics(SM_CXSMICON),
|
GetSystemMetrics(SM_CXSMICON),
|
||||||
GetSystemMetrics(SM_CYSMICON), 0, 0, DI_NORMAL);
|
GetSystemMetrics(SM_CYSMICON), 0, 0, DI_NORMAL);
|
||||||
|
|
Loading…
Reference in New Issue