mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
Fixed a little positioning bug with the checkbox.
This commit is contained in:
parent
48c6eb55f7
commit
f22ff403ac
@ -681,7 +681,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
|
||||
{
|
||||
HDC hMemDC = CreateCompatibleDC( hDC );
|
||||
int x = 0, y = 0;
|
||||
delta = (rbox.bottom - rbox.top - checkBoxHeight) >> 1;
|
||||
delta = (rbox.bottom - rbox.top - checkBoxHeight) / 2;
|
||||
|
||||
/* Check in case the client area is smaller than the checkbox bitmap */
|
||||
if (delta < 0) delta = 0;
|
||||
|
||||
if (action == ODA_SELECT) FillRect( hDC, &rbox, hBrush );
|
||||
else FillRect( hDC, &client, hBrush );
|
||||
|
Loading…
Reference in New Issue
Block a user