Commit f22ff403 authored by Francis Beaudet's avatar Francis Beaudet Committed by Alexandre Julliard

Fixed a little positioning bug with the checkbox.

parent 48c6eb55
...@@ -681,7 +681,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action ) ...@@ -681,7 +681,10 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
{ {
HDC hMemDC = CreateCompatibleDC( hDC ); HDC hMemDC = CreateCompatibleDC( hDC );
int x = 0, y = 0; 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 ); if (action == ODA_SELECT) FillRect( hDC, &rbox, hBrush );
else FillRect( hDC, &client, hBrush ); else FillRect( hDC, &client, hBrush );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment