size->cx = (int)ceil(size->cx / scale);

So if size->cx / scale works out to be 12.0001 you will round it up to 13?

Can you check what pixel size windows gives you in such a case ?
I'd be a little surprised if they did that rather than round.

Is the SetFontProperty that does not accept a scale parameter still used
somewhere ?

-phil.

On 10/29/2015 04:53 AM, Sergey Bylokhov wrote:
On 17.07.15 16:27, Alexander Scherbatiy wrote:

- Sergey's point about multi-mon should be checked out.
     Windows 8.1 has option "Let me choose one scaling level for all my
displays".
     If I unset it I am able to change the size of all items. However,
the DPI which returns GetDPIForMonitor is still 2 on HiDPI displays.

This version looks fine, but I am sure it can be double checked on windows 10 at some moment as well.



Reply via email to