summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoen Hirschberg <marcoen@gmail.com>2007-02-11 20:49:48 +0000
committerMarcoen Hirschberg <marcoen@gmail.com>2007-02-11 20:49:48 +0000
commit08bc43f0fd0bf3a67603521f837c81b7a83a47bb (patch)
tree135fbd7fb2d37cf10bd406439a1297dd3f6915b8
parent37d246ab4b7ce03f71fe2bec78413145ea0f49e2 (diff)
downloadrockbox-08bc43f0fd0bf3a67603521f837c81b7a83a47bb.tar.gz
rockbox-08bc43f0fd0bf3a67603521f837c81b7a83a47bb.zip
add support for foreground and background colors
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12272 a1c6a512-1295-4272-9138-f99709370657
-rwxr-xr-xwps/wpsbuild.pl14
1 files changed, 14 insertions, 0 deletions
diff --git a/wps/wpsbuild.pl b/wps/wpsbuild.pl
index dd8c91d0fb..e976941192 100755
--- a/wps/wpsbuild.pl
+++ b/wps/wpsbuild.pl
@@ -171,6 +171,12 @@ MOO
171 if($font) { 171 if($font) {
172 push @out, "font: /.rockbox/fonts/$font\n"; 172 push @out, "font: /.rockbox/fonts/$font\n";
173 } 173 }
174 if($fgcolor) {
175 push @out, "foreground color: $fgcolor\n";
176 }
177 if($bgcolor) {
178 push @out, "background color: $bgcolor\n";
179 }
174 if($statusbar) { 180 if($statusbar) {
175 push @out, "statusbar: $statusbar\n"; 181 push @out, "statusbar: $statusbar\n";
176 } 182 }
@@ -212,6 +218,8 @@ while(<WPS>) {
212 undef $width; 218 undef $width;
213 undef $height; 219 undef $height;
214 undef $font; 220 undef $font;
221 undef $fgcolor;
222 undef $bgcolor;
215 undef $statusbar; 223 undef $statusbar;
216 undef $author; 224 undef $author;
217 undef $req_g_wps; 225 undef $req_g_wps;
@@ -306,6 +314,12 @@ while(<WPS>) {
306 elsif($l =~ /^Font: (.*)/i) { 314 elsif($l =~ /^Font: (.*)/i) {
307 $font = $1; 315 $font = $1;
308 } 316 }
317 elsif($l =~ /^Foreground Color: (.*)/i) {
318 $fgcolor = $1;
319 }
320 elsif($l =~ /^Background Color: (.*)/i) {
321 $bgcolor = $1;
322 }
309 elsif($l =~ /^Font\.${main_width}x${main_height}x$main_depth: (.*)/i) { 323 elsif($l =~ /^Font\.${main_width}x${main_height}x$main_depth: (.*)/i) {
310 $font = $1; 324 $font = $1;
311 } 325 }