This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#9051 - remove lcd margins
Attached to Project:
Rockbox
Opened by Jonathan Gordon (jdgordon) - Thursday, 29 May 2008, 17:01 GMT+1
Last edited by Jonathan Gordon (jdgordon) - Monday, 23 June 2008, 15:21 GMT+1
Opened by Jonathan Gordon (jdgordon) - Thursday, 29 May 2008, 17:01 GMT+1
Last edited by Jonathan Gordon (jdgordon) - Monday, 23 June 2008, 15:21 GMT+1
|
Detailsthis patch removes the x/y lcd margins from everywhere.. to replicate the old behaviour you have to use viewports.
please test and let me know which screens need aditional fixing... |
i tried the patch and noticed the following things need fixing:
-WPS when the statusbar is shown (%we) and the .wps uses text in the main viewport (for example the hardcoded default WPS and the zezayer rWPS). The text is drawn 8 pixel to high, so the statusbar overlaps the first line.
-included WPS that use %m tags (Cabbiev2). (
FS#9027will have to be committed first to be able to fix them properly)-recording screen (i guess this isn't a surprise).
ill get to the rest of the screens later today or on the weekend
- Failing hunk with current SVN because of the HAS_BUTTONBAR to HAVE_BUTTONBAR conversion (see http://svn.rockbox.org/viewvc.cgi/trunk/apps/screen_access.h?r1=17654;r2=17655;pathrev=17655 )
- The hardcoded default WPS reserves the space for the statusbar even when it is not shown (disabled via settings).
- when the WPS doesn't specify if the Statusbar is shown or not (no %wd or %we tag) and when the statusbar is enabled via settings, then the statusbar still overlaps the first line of the WPS.
/home/bpanesar/rockbox-r17647/build-x5/apps/gui/textarea.o: In function `gui_textarea_clear':
textarea.c:(.text+0x38): undefined reference to `screen_set_ymargin'
/home/bpanesar/rockbox-r17647/build-x5/apps/recorder/radio.o: In function `scan_presets':
radio.c:(.text+0xc9c): undefined reference to `screen_set_xmargin'
/home/bpanesar/rockbox-r17647/build-x5/apps/recorder/radio.o: In function `radio_screen':
radio.c:(.text+0xd5a): undefined reference to `screen_set_xmargin'
radio.c:(.text+0x1092): undefined reference to `screen_set_xmargin'
radio.c:(.text+0x10e4): undefined reference to `screen_set_xmargin'
radio.c:(.text+0x12a0): undefined reference to `screen_set_xmargin'
collect2: ld returned 1 exit status
make[1]: *** [/home/bpanesar/rockbox-r17647/build-x5/apps/rockbox.elf] Error 1
make: *** [build] Error 2
FS#9027(merged) ... http://jdgordon.info:8080/~jonno/rockbox/wpschanges/I've also triggered another build for my windows sims if anyone will test them out.
(also fixed the charcell build error)
misc.c: In function 'parse_list':
misc.c:1341: warning: implicit declaration of function 'printf'
...
gui/wps_parser.c: In function 'parse_progressbar':
gui/wps_parser.c:847: warning: passing argument 2 of 'parse_list' from incompatible pointer type
...
/1_builds/c200/apps/misc.o: In function `parse_list':
misc.c:(.text+0x190c): undefined reference to `printf'
collect2: ld returned 1 exit status
I don't think I did anything wrong, even tried a make clean and reconfigure.
Edit: Building a c200 sim gives me the 2 warnings but doesn't fail.
After fixing that it seems that the code changes seems to work well but didn't have a look at the wps changes yet. Hope you tested a bit yourself in sims... ;)
the line with the %pb tag is not interpreted as a blank line as before so that every text that follows below is one line up compared to SVN and in the worst case you have text in the same position as the progressbar. This is probably not a problem for new WPSs as you can freely position the progressbar with a y-coordinate but it would change existing and shipped WPSs, especially cabbiev2. The question is whether to restore the old behaviour or just insert an additional blank line in the affected WPSs...
P.S.: Just tried cabbiev2 in a M5 sim - and it doesn't seem to be a problem in cabbiev2 because the line below the progressbar is in its own viewport but why should it be only displayed when cover art is present?? And lots of things are off in other shipped themes (didn't have the time to see whether I can find what's happening).
*EDIT* it almost looks like the %pb only tag (used in iAmp, DancePuffDuo, some others, calculates its position using the sysfont height and not the user font height as before). In iCatcher the y-position parameter in the %pb tag has a - (all wrt the 160x128x2 WPSs). Ah, I *guess* this should mean "use line position" then? Then the same applies to iCatcher what I said about iAmp and DancePuffDuo + have to say again that using a blank parameter (even marked with -) often make the code harder to understand...
Another thing that irritated me about this patch - loading a WPS that contains %m is possible it isn't rejected as in other cases of syntax errors - the defined margin is just ignored.