From 5f9f9bc14df71f5167fd154c53599136e057e11a Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 14 Nov 2005 15:10:40 +0000 Subject: fixed the size check logic git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7865 a1c6a512-1295-4272-9138-f99709370657 --- wps/wpsbuild.pl | 11 ++++++++--- 1 file 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() { 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; -- cgit v1.2.3