From 31c8eee99d7917bf83bbc6cf4cb9579af10d4d42 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Sat, 31 Jan 2009 12:23:35 +0000 Subject: 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 --- wps/wpsbuild.pl | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'wps/wpsbuild.pl') 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; my $rbdir=".rockbox"; my $wpslist; my $target; +my $modelname; # Get options GetOptions ( 'r|root=s' => \$ROOT, + 'm|modelname=s' => \$modelname, 'v|verbose' => \$verbose, 'rbdir=s' => \$rbdir, # If we want to put in a different directory ); @@ -373,6 +375,10 @@ while() { $req_g = $rwidth . "x" . $rheight . "x" . $d; + # check for model specific wps + $req_g_wps = $wps_prefix . "." . $req_g . "." . $modelname . ".wps"; + last if (-e "$wpsdir/$req_g_wps"); + $req_g_wps = $wps_prefix . "." . $req_g . ".wps"; last if (-e "$wpsdir/$req_g_wps"); -- cgit v1.2.3