diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-11-14 15:10:40 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-11-14 15:10:40 +0000 |
| commit | 5f9f9bc14df71f5167fd154c53599136e057e11a (patch) | |
| tree | 3e742ea51fbbe5bedf207c52f9065c4b322da58d /wps | |
| parent | 51413e444296f4444a7ff6e1a005e18b30e0f77e (diff) | |
| download | rockbox-5f9f9bc14df71f5167fd154c53599136e057e11a.zip rockbox-5f9f9bc14df71f5167fd154c53599136e057e11a.tar.gz rockbox-5f9f9bc14df71f5167fd154c53599136e057e11a.tar.bz2 rockbox-5f9f9bc14df71f5167fd154c53599136e057e11a.tar.xz | |
fixed the size check logic
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7865 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps')
| -rwxr-xr-x | wps/wpsbuild.pl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index de7f006..3df22b4 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl @@ -142,18 +142,23 @@ while(<WPS>) { exit; } - # print "LCD: $wps wants $rheight x $rwidth\n"; + #print "LCD: $wps wants $height x $width\n"; + #print "LCD: is $rheight x $rwidth\n"; - if(($height >= $rheight) || - ($width >= $width)) { + if(($height <= $rheight) && ($width <= $width)) { # # The target model has an LCD that is suitable for this # WPS # + #print "Size requirement is fine!\n"; + mkdirs(); buildcfg(); copywps(); } + else { + #print "Skip $wps due to size restraints\n"; + } $within = 0; undef $wps, $width, $height, $font, $statusbar, $author; |