when i say window width in project xml openfl,
window size does not scale, i have high dpi computer but window size does not scale with openfl, it should scale from pixel size specified in window in xml, any fix ?
have seen on openfl 3 with haxdflixel, and openfl 4 with piratepig sample
Under the hood, we use a library called SDL2 to handle windows and the OpenGL context. It supports “HIGH_DPI” but only on macOS, I believe – Linux and Windows might not be supported (I haven’t tested Linux, and I know that the Windows output is not “DPI aware”)
The flag is called SDL_WINDOW_ALLOW_HIGHDPI, and does not work on Windows, to my knowledge. You can enable using <window allow-high-dpi="true" /> in your project.xml
I’m not sure if we can fix it in SDL2 (it seems like a larger, more complicated issue), but we may be able to do GPU scaling to preserve the original intended scale, in cases where you request a specific window width and height. Would this help?
if i understand you saying
you say if app request window size 800x600, actual window size may not be 800x600, depending on dpi, if you see kha haxe framework it scale correct, app window size should scale according to dpi, otherwise window too small on hidpi, actual pixel size need be independent detach from adjusted pixel size, openfl window should convert, most windows apps already do