I’m working on a dialogue editor using the openfl backend and when I target html5, the UI is very zoomed in on high DPI devices ( ie: surface pro ):
normal:
DPR 2 or 3:
I’ve tried manually setting the toolkit scale using:
haxe.ui.Toolkit.scaleX = 1.0;
haxe.ui.Toolkit.scaleY = 1.0;
editing the project.xml to allow and reject high dpi but to no avail, so I was wondering if anybody has encountered this kind of issue before.
editor online here, if you inspect element and change the dpr to either 2 or 3 and refresh you should see the issue.
source here
Thanks!

