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:
parent
51413e4442
commit
5f9f9bc14d
1 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue