You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to implement basic Retina support for Flash target.
Currently, in Flash on Retina displays, BitmapData are drawn with 2x2 physical pixels, so drawing for example a TextField to a BitmapData will result in a resolution loss.
To workaround this issue, we had the idea to multiply the dimensions of the BitmapData by Stage.contentsScaleFactor (which would correspond to actually available physical pixels) and then scale down the Bitmap / Sprite by ( 1 / Stage.contentsScaleFactor ).
This seems to be the current behaviour on NME, actually (the runtime simply uses physical resolution)
Any insight as to how to implement this, preferably the easy way :p ?
The text was updated successfully, but these errors were encountered:
We need to implement basic Retina support for Flash target.
Currently, in Flash on Retina displays, BitmapData are drawn with 2x2 physical pixels, so drawing for example a TextField to a BitmapData will result in a resolution loss.
To workaround this issue, we had the idea to multiply the dimensions of the BitmapData by Stage.contentsScaleFactor (which would correspond to actually available physical pixels) and then scale down the Bitmap / Sprite by ( 1 / Stage.contentsScaleFactor ).
This seems to be the current behaviour on NME, actually (the runtime simply uses physical resolution)
Any insight as to how to implement this, preferably the easy way :p ?
The text was updated successfully, but these errors were encountered: