summaryrefslogtreecommitdiff
path: root/wps
diff options
context:
space:
mode:
Diffstat (limited to 'wps')
-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 }