diff options
author | Bertrik Sikken <bertrik@sikken.nl> | 2009-01-31 12:23:35 +0000 |
---|---|---|
committer | Bertrik Sikken <bertrik@sikken.nl> | 2009-01-31 12:23:35 +0000 |
commit | 31c8eee99d7917bf83bbc6cf4cb9579af10d4d42 (patch) | |
tree | eb3720c5d04738af70ac29244c10deb677f4a217 /wps/wpsbuild.pl | |
parent | ba4be5157191af6fbb83756119ffd29147b7fb99 (diff) | |
download | rockbox-31c8eee99d7917bf83bbc6cf4cb9579af10d4d42.tar.gz rockbox-31c8eee99d7917bf83bbc6cf4cb9579af10d4d42.zip |
FS#9763 - Sansa Clip modified WPS. This modified wps avoids wps elements getting split over the yellow/cyan
parts of the display. Also introduces a mechanism for selecting a target specific wps if there is already
another wps with the same screen size.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19889 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'wps/wpsbuild.pl')
-rwxr-xr-x | wps/wpsbuild.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl index 278d104771..af4c7c411f 100755 --- a/wps/wpsbuild.pl +++ b/wps/wpsbuild.pl | |||
@@ -16,9 +16,11 @@ my $verbose; | |||
16 | my $rbdir=".rockbox"; | 16 | my $rbdir=".rockbox"; |
17 | my $wpslist; | 17 | my $wpslist; |
18 | my $target; | 18 | my $target; |
19 | my $modelname; | ||
19 | 20 | ||
20 | # Get options | 21 | # Get options |
21 | GetOptions ( 'r|root=s' => \$ROOT, | 22 | GetOptions ( 'r|root=s' => \$ROOT, |
23 | 'm|modelname=s' => \$modelname, | ||
22 | 'v|verbose' => \$verbose, | 24 | 'v|verbose' => \$verbose, |
23 | 'rbdir=s' => \$rbdir, # If we want to put in a different directory | 25 | 'rbdir=s' => \$rbdir, # If we want to put in a different directory |
24 | ); | 26 | ); |
@@ -373,6 +375,10 @@ while(<WPS>) { | |||
373 | 375 | ||
374 | $req_g = $rwidth . "x" . $rheight . "x" . $d; | 376 | $req_g = $rwidth . "x" . $rheight . "x" . $d; |
375 | 377 | ||
378 | # check for model specific wps | ||
379 | $req_g_wps = $wps_prefix . "." . $req_g . "." . $modelname . ".wps"; | ||
380 | last if (-e "$wpsdir/$req_g_wps"); | ||
381 | |||
376 | $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; | 382 | $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; |
377 | last if (-e "$wpsdir/$req_g_wps"); | 383 | last if (-e "$wpsdir/$req_g_wps"); |
378 | 384 | ||