Permalink
Browse files

Merge branch 'master' of github.com:cfjedimaster/ineedit

  • Loading branch information...
2 parents 456af4f + 74cb690 commit c4ebdf215aa2df230219a3e67aca68aef4532c2c @cfjedimaster committed Sep 27, 2011
Showing with 26 additions and 11 deletions.
  1. +25 −0 src/CustomRuntimeDPIProvider.as
  2. +1 −11 src/INeedIt.mxml
@@ -0,0 +1,25 @@
+package
+{
+ import flash.system.Capabilities;
+
+ import mx.core.RuntimeDPIProvider;
+
+ public class CustomRuntimeDPIProvider extends RuntimeDPIProvider
+ {
+ public function CustomRuntimeDPIProvider()
+ {
+ super();
+ }
+
+ override public function get runtimeDPI():Number
+ {
+ if (Capabilities.screenResolutionX == 540 && Capabilities.screenResolutionY == 960 ||
+ Capabilities.screenResolutionX == 960 && Capabilities.screenResolutionY == 540 ||
+ Capabilities.screenResolutionX == 480 && Capabilities.screenResolutionY == 800
+ )
+ return 240;
+
+ return super.runtimeDPI;
+ }
+ }
+}
View
@@ -1,19 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.INeedItHomeView"
- splashScreenImage="@Embed('assets/first.jpg')">
+ splashScreenImage="@Embed('assets/first.jpg')" runtimeDPIProvider="CustomRuntimeDPIProvider">
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
- <fx:Style>
- @namespace s "library://ns.adobe.com/flex/spark";
- global {
- fontSize: 36pt;
- }
- s|ActionBar #titleDisplay
- {
- fontSize: 36pt;
- }
- </fx:Style>
</s:ViewNavigatorApplication>

0 comments on commit c4ebdf2

Please sign in to comment.