flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject [06/10] git commit: [flex-sdk] - Added support for 480dpi
Date Thu, 25 Apr 2013 00:59:15 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/a60bce71
Tree: http://git-wip-us.apache.org/repos/asf/flex-sdk/tree/a60bce71
Diff: http://git-wip-us.apache.org/repos/asf/flex-sdk/diff/a60bce71

Branch: refs/heads/480dpi
Commit: a60bce71a77f44d7369c1ce4f39037eb8ad65f67
Parents: 5aac986
Author: Justin Mclean <jmclean@apache.org>
Authored: Thu Apr 25 10:08:44 2013 +1000
Committer: Justin Mclean <jmclean@apache.org>
Committed: Thu Apr 25 10:08:44 2013 +1000

----------------------------------------------------------------------
 .../src/spark/skins/mobile/ViewMenuSkin.mxml       |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/a60bce71/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml
----------------------------------------------------------------------
diff --git a/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml b/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml
index fba4b1a..52fb708 100644
--- a/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml
+++ b/frameworks/projects/mobiletheme/src/spark/skins/mobile/ViewMenuSkin.mxml
@@ -88,10 +88,12 @@
             {
                 super.updateDisplayList(unscaledWidth, unscaledHeight);
                 
-                var strokeWeight:Number = (applicationDPI == DPIClassification.DPI_320) ?
2 : 1;
+                var strokeWeight:Number = (applicationDPI == DPIClassification.DPI_480 ||
applicationDPI == DPIClassification.DPI_320) ? 2 : 1;
                 var separatorWeight:Number = 1;
                 
-                if (applicationDPI == DPIClassification.DPI_320)
+				if (applicationDPI == DPIClassification.DPI_480)
+					separatorWeight = 6;
+				else if (applicationDPI == DPIClassification.DPI_320)
                     separatorWeight = 4;
                 else if (applicationDPI == DPIClassification.DPI_240)
                     separatorWeight = 2;          


Mime
View raw message