example project to show display scale bug.
For html5 targets, on PC where the OS display scale is set to >100% or on Apple Retina displays, and when the camera's x value are set to >0, the scroll rect for the camera will display incorrectly. This will lead to instances where the camera will get cropped. This potentially happens due to the browser reporting a smaller width of the game window.
See demo here: https://aeveis.github.io/haxeflixel-display-scale-fix/
- The demo will show some checkboard squares. If your display resolution is greater than 100%, you will see red squares below.
The fix is relatively simple after much investigation: Simply have the allow-high-dpi flag set to false in your project.xml:
<window if="html5" allow-high-dpi="false" />
Originally discussed in Haxe discord: https://discord.com/channels/162395145352904705/1096838175248351283