Skip to content
Snippets Groups Projects
Commit f22ff403 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard
Browse files

Fixed a little positioning bug with the checkbox.

parent 48c6eb55
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment