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

Refactor ui #30

Merged
merged 6 commits into from Jun 17, 2014
Merged
Diff settings

Always

Just for now

Copy path View file
@@ -0,0 +1,39 @@
package
{
import flash.system.Capabilities;

import mx.core.DPIClassification;
import mx.core.RuntimeDPIProvider;

public class CustomRuntimeDPIProvider extends RuntimeDPIProvider
{
public function CustomRuntimeDPIProvider()
{

}

override public function get runtimeDPI():Number
{
if (Capabilities.screenDPI < 200)
{
return DPIClassification.DPI_160;
}

if (Capabilities.screenDPI <= 280)
{
return DPIClassification.DPI_240;
}

if (Capabilities.screenDPI <= 400)
{
return DPIClassification.DPI_320;
}

if (Capabilities.screenDPI <= 560)
{
return 480;
}
return 640;
}
}
}
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.