Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  I think I fixed up BoxAmp for 3.14
« previous next »
  • Print
Pages: [1]

Author Topic: I think I fixed up BoxAmp for 3.14  (Read 1089 times)

Offline anescient

  • Member
  • *
  • Posts: 1
I think I fixed up BoxAmp for 3.14
« on: October 14, 2017, 04:51:39 PM »
Original post:
Quote
I had to revert back to 3.13 because I can't not have my favorite theme: http://themes.rockbox.org/index.php?themeid=1363

In 3.14, the WPS screen completely fails; it reverts to some kind of simple default appearance.

I suspect, maybe could be, that this is where it got broken: https://git.rockbox.org/?p=rockbox.git;a=commitdiff;h=4e1c690ea7b2163f64e3ca9dc25ca69bc75ee433

I've built the theme editor and opened the BoxAmp WPS, and the preview looks kinda squirrelly, but it loads just fine. It even says, "Document Parses Successfully".

Any guesses as to what's going wrong, here?

Does Rockbox have any kind of log or debug output that could help me pinpoint exactly where in the WPS file it's choking?

Never mind, I guess.
I took one last look at it, and I found this in the WPS:
Code: [Select]
#Progress bar
%V(17,99,187,9,-)
%pb(0,0,188,9,nobar,nofill,slider,L)

I believe that was failing this test:
Code: [Select]
        pb->width = param->data.number;
        if (pb->width <= 0 || (pb->x + pb->width) > vp->width)
            return WPS_ERROR_INVALID_PARAM;

I changed the 188 to 187:
Code: [Select]
#Progress bar
%V(17,99,187,9,-)
%pb(0,0,187,9,nobar,nofill,slider,L)

... and it seems all good now. I haven't tested the hell out of it, but it does seem to work.
« Last Edit: October 14, 2017, 05:43:02 PM by anescient »
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  I think I fixed up BoxAmp for 3.14
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.046 seconds with 15 queries.