flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mamsel...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - UPDATE FIX FLEX-33861 Flex Incorrectly Scaling Down Application set 1024 and 2048 as static vars so that they can be changed if needed
Date Sat, 02 Nov 2013 12:01:34 GMT
Updated Branches:
  refs/heads/develop ce9dc2f6e -> d91948e96


UPDATE FIX FLEX-33861 Flex Incorrectly Scaling Down Application
set 1024 and 2048 as static vars so that they can be changed if needed


Project: http://git-wip-us.apache.org/repos/asf/flex-sdk/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/d91948e9
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/d91948e9
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/d91948e9

Branch: refs/heads/develop
Commit: d91948e962c34375824688f28fb9aa4df6cf87b2
Parents: ce9dc2f
Author: mamsellem <maurice.amsellem@systar.com>
Authored: Sat Nov 2 13:00:25 2013 +0100
Committer: mamsellem <maurice.amsellem@systar.com>
Committed: Sat Nov 2 13:00:25 2013 +0100

----------------------------------------------------------------------
 .../projects/framework/src/mx/core/RuntimeDPIProvider.as     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/d91948e9/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as b/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as
index 8f94de4..46db6ad 100644
--- a/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as
+++ b/frameworks/projects/framework/src/mx/core/RuntimeDPIProvider.as
@@ -71,6 +71,10 @@ use namespace mx_internal;
  */
 public class RuntimeDPIProvider
 {
+
+    mx_internal static const IPAD_MAX_EXTENT:int = 1024;
+    mx_internal static const IPAD_RETINA_MAX_EXTENT: int = 2048;
+
     /**
      *  Constructor.
      *
@@ -129,9 +133,9 @@ public class RuntimeDPIProvider
                     /*  as of Dec 2013,  iPad (resp. iPad retina)   are the only iOS devices
to have 1024 (resp. 2048) screen width or height
                      cf http://en.wikipedia.org/wiki/List_of_displays_by_pixel_density#Apple
                      * */
-                    if ((scX == 2048 || scY == 2048))
+                    if ((scX == IPAD_RETINA_MAX_EXTENT || scY == IPAD_RETINA_MAX_EXTENT))
                         return DPIClassification.DPI_320;
-                    else if (scX == 1024 || scY == 1024)
+                    else if (scX == IPAD_MAX_EXTENT || scY == IPAD_MAX_EXTENT)
                         return DPIClassification.DPI_160;
                 }
             }


Mime
View raw message