Fixed a little positioning bug with the checkbox.

oldstable
Francis Beaudet 1999-09-03 12:35:18 +00:00 committed by Alexandre Julliard
parent 48c6eb55f7
commit f22ff403ac
1 changed files with 4 additions and 1 deletions

View File

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