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:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  conditional viewports problems thread
« previous next »
  • Print
Pages: [1]

Author Topic: conditional viewports problems thread  (Read 6538 times)

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
conditional viewports problems thread
« on: June 23, 2008, 02:08:32 AM »
if you have a problem with the new viewport tags post here....
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: conditional viewports problems thread
« Reply #1 on: June 23, 2008, 09:36:21 AM »
I get a divide by zero at 0xC0000094 when running this code:

Code: [Select]
...
%V|30|140|180|18|1|FFFFFF|FFFFFF|
%pb|pb.bmp|0|0|0|0|
...

OK, i found out that the %pb parameters height and width have to be other than 0 or you get that error.
« Last Edit: June 23, 2008, 09:46:51 AM by BdN3504 »
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: conditional viewports problems thread
« Reply #2 on: June 23, 2008, 09:44:01 AM »
Hi,

this line looks wrong:
%pb|pb.bmp|0|0|0|0|

(height and width of the progressbar are zero.)
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: conditional viewports problems thread
« Reply #3 on: June 23, 2008, 09:47:48 AM »
Which would mean it's nothing to do with the new conditional viewports code...

Please people - before you start hassling Jd left right and centre - make sure your WPS works *without* the conditionals first!!
Logged

Read The Manual Please

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: conditional viewports problems thread
« Reply #4 on: June 23, 2008, 09:51:01 AM »
Well this line worked without the update:

%V|30|161|180|36|1|FFFFFF|FFFFFF|
%pb|0|0|0|0|

So it sure has something to do with the change.
Logged

Offline GodEater

  • Member
  • *
  • Posts: 2829
Re: conditional viewports problems thread
« Reply #5 on: June 23, 2008, 09:52:24 AM »
Yes, it would appear the %pb behaviour has been changed too in the same patch - so folks need to be careful of that too.
Logged

Read The Manual Please

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: conditional viewports problems thread
« Reply #6 on: June 23, 2008, 09:52:50 AM »
GodEater, thanks, but the commit also completly changed the %pb tags so th eventual error was completly OK....
that said, had he looked at the CustomWPS page (or even the commit message) he would have figuredd out that he is using %pb completly wrong. (also the colours in the viewports... )

Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: conditional viewports problems thread
« Reply #7 on: June 23, 2008, 10:04:14 AM »
Quote from: JdGordon on June 23, 2008, 09:52:50 AM
had he looked at the CustomWPS page (or even the commit message) he would have figuredd out that he is using %pb completly wrong. (also the colours in the viewports... )
I do look at the customwps page quite often. If i use a viewport which serves only to display an image (in this case the progressbar) do the colours matter? I don't think so. I understood the changes to %pb and have included the filename into that part removing the %P line. The code i posted refers to an old wps with the old syntax. All i wanted to say is you could very well use %pb with 0 as parameters as i did in that example but now it doesn't work anymore.
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: conditional viewports problems thread
« Reply #8 on: June 23, 2008, 10:07:08 AM »
Quote from: BdN3504 on June 23, 2008, 10:04:14 AM
All i wanted to say is you could very well use %pb with 0 as parameters as i did in that example but now it doesn't work anymore.
1) thats irrelevant.. the syntax changed, therefor what used to work by definition shouldnt work anymore...
2) you probably could have got away with doing %pb before
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: conditional viewports problems thread
« Reply #9 on: June 23, 2008, 10:09:21 AM »
Old Syntax is broken, that was made clear by the commit message: This commit is not backward compatible.
Logged

Offline BdN3504

  • Artist
  • Member
  • *
  • Posts: 323
Re: conditional viewports problems thread
« Reply #10 on: June 23, 2008, 10:25:06 AM »
I'm not asking for the commit to be backward compatible... If people who have created wps in the past and use the %pb syntax as i did, and try to adjust their wps to meet the new syntax, they will definitely stumble upon that same error. In the Customwps page it says nothing about the fact, that 0 as values for height and width are illegal. So if people get that error, they know what they have to change, is all i want to get across.
Logged

Offline PaulJam

  • Member
  • *
  • Posts: 170
Re: conditional viewports problems thread
« Reply #11 on: June 23, 2008, 10:31:40 AM »
In my opinion setting the width or height of the progressbar to zero is pointless, because it wouldn't be visible. I don't really think this needs extra mentioning.
But i think the WPS should just be rejected by the parser and not cause a crash.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: conditional viewports problems thread
« Reply #12 on: June 23, 2008, 10:36:55 AM »
Agreed, DivX0 should never show up. But I consider it a bug of the old tag that it accepted 0-width or 0-height bars in the first place.
Logged

Offline robin0800

  • Member
  • *
  • Posts: 291
  • Freeman
Re: conditional viewports problems thread
« Reply #13 on: June 23, 2008, 12:47:34 PM »
The Progress Bar commit Uses |-| to indicate zero or the default
Logged

Offline JdGordon

  • Member
  • *
  • Posts: 1817
  • Constantly breaking stuff
Re: conditional viewports problems thread
« Reply #14 on: June 29, 2008, 03:46:39 AM »
I've just done another commit to the cabbie themes, so let me know if you notice anything bad happening with them... otherwise I tihnk we can close this thread...
Logged


Using PMs to annoy devs about bugs/patches is not a good way to have the issue looked at.

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  conditional viewports problems thread
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.11 seconds with 17 queries.