[PATCH 4/4] user32: Scale the button size with screen resolution.

Dmitry Timoshkov dmitry at baikal.ru
Mon Aug 22 03:34:33 CDT 2016


Huw Davies <huw at codeweavers.com> wrote:

> +    checkBoxWidth  = 12 * GetDeviceCaps( hDC, LOGPIXELSX ) / 96 + 1;
> +    checkBoxHeight = 12 * GetDeviceCaps( hDC, LOGPIXELSY ) / 96 + 1;

Are you sure that user32 is really supposed to scale the buttons? Could that
be that it's only new comctl32 implementation should do this kind of thing?
Scaling the buttons has the potential of completely distorting the dialog
layout, and I really would like to see some tests for this behaviour (even
a standalone application would be acceptable).

-- 
Dmitry.



More information about the wine-devel mailing list