Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HiDPI / Retina support #396

Open
clemos opened this issue Jan 23, 2014 · 2 comments
Open

HiDPI / Retina support #396

clemos opened this issue Jan 23, 2014 · 2 comments

Comments

@clemos
Copy link
Contributor

clemos commented Jan 23, 2014

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 ?

@clemos
Copy link
Contributor Author

clemos commented Jan 28, 2014

I've actually managed to implement this quite easily.
I'll send a pull request some time.
Thanks anyway ;)

@yanhick
Copy link
Member

yanhick commented Jan 28, 2014

Cool !

Glad I could help doing nothing ;)

2014-01-28 Clément Charmet [email protected]

I've actually managed to implement this quite easily.
I'll send a pull request some time.
Thanks anyway ;)

Reply to this email directly or view it on GitHubhttps://github.com//issues/396#issuecomment-33470308
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants