summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-11-14 15:10:40 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-11-14 15:10:40 +0000
commit5f9f9bc14df71f5167fd154c53599136e057e11a (patch)
tree3e742ea51fbbe5bedf207c52f9065c4b322da58d
parent51413e444296f4444a7ff6e1a005e18b30e0f77e (diff)
downloadrockbox-5f9f9bc14df71f5167fd154c53599136e057e11a.tar.gz
rockbox-5f9f9bc14df71f5167fd154c53599136e057e11a.zip
fixed the size check logic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7865 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xwps/wpsbuild.pl11
1 files changed, 8 insertions, 3 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index de7f0067c8..3df22b4148 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -142,18 +142,23 @@ while(<WPS>) {
142 exit; 142 exit;
143 } 143 }
144 144
145 # print "LCD: $wps wants $rheight x $rwidth\n"; 145 #print "LCD: $wps wants $height x $width\n";
146 #print "LCD: is $rheight x $rwidth\n";
146 147
147 if(($height >= $rheight) || 148 if(($height <= $rheight) && ($width <= $width)) {
148 ($width >= $width)) {
149 # 149 #
150 # The target model has an LCD that is suitable for this 150 # The target model has an LCD that is suitable for this
151 # WPS 151 # WPS
152 # 152 #
153 #print "Size requirement is fine!\n";
154
153 mkdirs(); 155 mkdirs();
154 buildcfg(); 156 buildcfg();
155 copywps(); 157 copywps();
156 } 158 }
159 else {
160 #print "Skip $wps due to size restraints\n";
161 }
157 $within = 0; 162 $within = 0;
158 163
159 undef $wps, $width, $height, $font, $statusbar, $author; 164 undef $wps, $width, $height, $font, $statusbar, $author;