1
0
Fork 0
forked from len0rd/rockbox

fixed the size check logic

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7865 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Daniel Stenberg 2005-11-14 15:10:40 +00:00
parent 51413e4442
commit 5f9f9bc14d

View file

@ -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;