Slight 1 pixel adjustment on the position of the radio button bitmap.
This commit is contained in:
parent
5dc576b5c8
commit
49936036e6
@ -695,6 +695,12 @@ static void CB_Paint( WND *wndPtr, HDC hDC, WORD action )
|
|||||||
((wndPtr->dwStyle & 0x0f) == BS_AUTORADIOBUTTON)) y += checkBoxHeight;
|
((wndPtr->dwStyle & 0x0f) == BS_AUTORADIOBUTTON)) y += checkBoxHeight;
|
||||||
else if (infoPtr->state & BUTTON_3STATE) y += 2 * checkBoxHeight;
|
else if (infoPtr->state & BUTTON_3STATE) y += 2 * checkBoxHeight;
|
||||||
|
|
||||||
|
/* The bitmap for the radio button is not aligned with the
|
||||||
|
* left of the window, it is 1 pixel off. */
|
||||||
|
if (((wndPtr->dwStyle & 0x0f) == BS_RADIOBUTTON) ||
|
||||||
|
((wndPtr->dwStyle & 0x0f) == BS_AUTORADIOBUTTON))
|
||||||
|
rbox.left += 1;
|
||||||
|
|
||||||
SelectObject( hMemDC, hbitmapCheckBoxes );
|
SelectObject( hMemDC, hbitmapCheckBoxes );
|
||||||
BitBlt( hDC, rbox.left, rbox.top + delta, checkBoxWidth,
|
BitBlt( hDC, rbox.left, rbox.top + delta, checkBoxWidth,
|
||||||
checkBoxHeight, hMemDC, x, y, SRCCOPY );
|
checkBoxHeight, hMemDC, x, y, SRCCOPY );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user