summaryrefslogtreecommitdiff
path: root/wps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-05-15 07:47:29 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-05-15 07:47:29 +0000
commit3b52485eb3c62a1f631d16eb02b291c1ff55c629 (patch)
tree98d4801a9c22ef7b838daa917d67054b1e5025c8 /wps
parentcfc3c9e7168dafd308fd13a90a55b0d9116ec8d0 (diff)
downloadrockbox-3b52485eb3c62a1f631d16eb02b291c1ff55c629.tar.gz
rockbox-3b52485eb3c62a1f631d16eb02b291c1ff55c629.zip
Look for dedicated bitmaps for the LCD dimensions when building the WPS (in a subdir, for example iCatcher/160x128x16/)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9938 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps')
-rwxr-xr-xwps/wpsbuild.pl12
1 files changed, 9 insertions, 3 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index 9d2f122227..03a1f664d5 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -132,7 +132,12 @@ sub copywps {
132 } 132 }
133 close(WPSFILE); 133 close(WPSFILE);
134 134
135 if (-e "$dir/$wpsdir") { 135 if (-e "$dir/$wps_prefix/$req_g") {
136 foreach $file (@filelist) {
137 system("cp $dir/$wps_prefix/$req_g/$file .rockbox/wps/$wps_prefix/");
138 }
139 }
140 elsif (-e "$dir/$wps_prefix") {
136 foreach $file (@filelist) { 141 foreach $file (@filelist) {
137 system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/"); 142 system("cp $dir/$wps_prefix/$file .rockbox/wps/$wps_prefix/");
138 } 143 }
@@ -239,8 +244,9 @@ while(<WPS>) {
239 foreach $d (@depthlist) { 244 foreach $d (@depthlist) {
240 next if ($d > $rdepth); 245 next if ($d > $rdepth);
241 246
242 $req_g_wps = $wps_prefix . "." . $rwidth . "x" . $rheight 247 $req_g = $rwidth . "x" . $rheight . "x" . $d;
243 . "x" . $d . ".wps"; 248
249 $req_g_wps = $wps_prefix . "." . $req_g . ".wps";
244 last if (-e "$wpsdir/$req_g_wps"); 250 last if (-e "$wpsdir/$req_g_wps");
245 } 251 }
246 $req_t_wps = $wps_prefix . ".txt" . ".wps"; 252 $req_t_wps = $wps_prefix . ".txt" . ".wps";