You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by jm...@apache.org on 2013/05/12 12:49:08 UTC

[02/24] git commit: [flex-sdk] [refs/heads/develop] - Added support for 480dpi

Added support for 480dpi


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

Branch: refs/heads/develop
Commit: b2fed2e50aad0df2b95bd29c7ca069a06ba02203
Parents: 8153b9c
Author: Justin Mclean <jm...@apache.org>
Authored: Thu Apr 25 10:06:06 2013 +1000
Committer: Justin Mclean <jm...@apache.org>
Committed: Thu Apr 25 10:06:06 2013 +1000

----------------------------------------------------------------------
 .../projects/framework/src/mx/utils/DensityUtil.as |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/b2fed2e5/frameworks/projects/framework/src/mx/utils/DensityUtil.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/framework/src/mx/utils/DensityUtil.as b/frameworks/projects/framework/src/mx/utils/DensityUtil.as
index cbe8436..d0e1acb 100644
--- a/frameworks/projects/framework/src/mx/utils/DensityUtil.as
+++ b/frameworks/projects/framework/src/mx/utils/DensityUtil.as
@@ -86,8 +86,8 @@ public class DensityUtil
     public static function getDPIScale(sourceDPI:Number, targetDPI:Number):Number
     {
         // Unknown dpi returns NaN
-        if ((sourceDPI != DPIClassification.DPI_160 && sourceDPI != DPIClassification.DPI_240 && sourceDPI != DPIClassification.DPI_320) ||
-            (targetDPI != DPIClassification.DPI_160 && targetDPI != DPIClassification.DPI_240 && targetDPI != DPIClassification.DPI_320))
+        if ((sourceDPI != DPIClassification.DPI_160 && sourceDPI != DPIClassification.DPI_240 && sourceDPI != DPIClassification.DPI_320 && sourceDPI != DPIClassification.DPI_480) ||
+            (targetDPI != DPIClassification.DPI_160 && targetDPI != DPIClassification.DPI_240 && targetDPI != DPIClassification.DPI_320 && targetDPI != DPIClassification.DPI_480))
         {
             return NaN;
         }