flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [02/10] git commit: [flex-sdk] - Added support for 480dpi
Date Thu, 25 Apr 2013 00:59:11 GMT
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/480dpi
Commit: b2fed2e50aad0df2b95bd29c7ca069a06ba02203
Parents: 8153b9c
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu Apr 25 10:06:06 2013 +1000
Committer: Justin Mclean <jmclean@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;
         }


Mime
View raw message