Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#2954 - Scrolling text margin for the wps

Attached to Project: Rockbox
Opened by Ben Basha (paprica) - Saturday, 28 January 2006, 02:47 GMT+1
Last edited by Paul Louden (Llorean) - Wednesday, 14 November 2007, 21:02 GMT+1
Task Type Patches
Category WPS
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

The patch adds the possibility to restrict the width of a (scrolling) line.
It enables you to position the scroll text inside the line and give him a
starting and ending position.
It extents the %s WPS tag to the following:
%s%m|x1|x2|
where x1 is the x-position where the line text starts and x2 is the
ending x-position of the scroll text (actually, when I look at the
code, it should also work for nonscrolling text...)
Only one margin is allowed per line.

Thanks Massa for the description
   scrollmargins.diff (37.9 KiB)
 apps/bookmark.c                    |   12 ++++-----
 apps/debug_menu.c                  |   28 +++++++++++-----------
 apps/gui/gwps-common.c             |   41 ++++++++++++++++++++++++++------
 apps/gui/gwps.c                    |    7 ++---
 apps/gui/list.c                    |    2 -
 apps/onplay.c                      |    4 +--
 apps/playlist.c                    |    8 +++---
 apps/plugin.c                      |    6 ++--
 apps/recorder/recording.c          |    4 +--
 apps/screen_access.c               |    6 +++-
 apps/screen_access.h               |   11 ++++----
 apps/screens.c                     |    6 ++--
 apps/sleeptimer.c                  |    4 +--
 firmware/drivers/lcd-16bit.c       |   47 +++++++++++++++++++++++--------------
 firmware/drivers/lcd-h100-remote.c |   34 +++++++++++++++++---------
 firmware/drivers/lcd-h100.c        |   47 ++++++++++++++++++++++++-------------
 firmware/drivers/lcd-recorder.c    |   45 ++++++++++++++++++++++-------------
 firmware/export/lcd-remote.h       |    5 ++-
 firmware/export/lcd.h              |    7 +++--
 19 files changed, 204 insertions(+), 120 deletions(-)

This task depends upon

Closed by  Paul Louden (Llorean)
Wednesday, 14 November 2007, 21:02 GMT+1
Reason for closing:  Rejected
Additional comments about closing:  The desired parts of this task have been accepted, and the remainder is rejected, to be done via viewports instead.

Any patch that seeks acceptance should work in this direction and be a new task.
Comment by Ben Basha (paprica) - Saturday, 28 January 2006, 03:34 GMT+1

i found a bug

dont download it, i will upload new version in the noon
Comment by Ben Basha (paprica) - Saturday, 28 January 2006, 11:23 GMT+1

the bug fixed and now you can use also %ar & %ac

if you want a regular margin after a irregular one,
just use %m without nothing
Comment by Ben Basha (paprica) - Saturday, 28 January 2006, 12:56 GMT+1

work with the archos recorder too
Comment by Anonymous Submitter - Wednesday, 01 February 2006, 20:41 GMT+1

iuoçiuç
Comment by Ben Basha (paprica) - Monday, 06 February 2006, 18:21 GMT+1
version 2, work with all the targets...
CVS 2006-02-06
Comment by Ben Basha (paprica) - Monday, 06 February 2006, 21:53 GMT+1

buggy, dont download.
Comment by takka (tfact) - Tuesday, 07 February 2006, 02:11 GMT+1

old version for CVS 0207
http://takka.style.coocan.jp/wiki/?
plugin=attach&pcmd=open&file=scroll-
margins.patch&refer=RockBox
Comment by Nicolas Pennequin (nicolas_p) - Friday, 17 February 2006, 20:34 GMT+1

i synched this patch with the latest CVS (17.02.06). get it
here :
http://nicolas.pennequin.free.fr/scroll_margins.patch
Comment by needleboy (needleboy) - Sunday, 19 February 2006, 10:31 GMT+1

nicolas_p's version doesn't compile.
neither does Paprica's orginal.
Comment by Ben Basha (paprica) - Monday, 03 April 2006, 14:37 GMT+1

Massa version, synced with the cvs
   scroll-margins_20060402.patch (40.9 KiB)
 apps/bookmark.c                    |   12 ++++----
 apps/debug_menu.c                  |   32 +++++++++++------------
 apps/gui/gwps-common.c             |   50 +++++++++++++++++++++++++++++++------
 apps/gui/gwps.c                    |    7 ++---
 apps/gui/list.c                    |    2 -
 apps/logfdisp.c                    |    2 -
 apps/onplay.c                      |    4 +-
 apps/pcm_recording.c               |    2 -
 apps/playlist.c                    |    8 ++---
 apps/plugin.c                      |   12 ++++----
 apps/recorder/recording.c          |    4 +-
 apps/screen_access.c               |    6 ++--
 apps/screen_access.h               |   11 ++++----
 apps/screens.c                     |   24 +++++++++--------
 apps/sound_menu.c                  |   11 ++++----
 firmware/drivers/lcd-16bit.c       |   44 ++++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c   |   14 +++++++---
 firmware/drivers/lcd-h100-remote.c |   25 +++++++++++-------
 firmware/drivers/lcd-h100.c        |   46 +++++++++++++++++++++++-----------
 firmware/drivers/lcd-recorder.c    |   44 ++++++++++++++++++++++----------
 firmware/export/lcd-remote.h       |    5 ++-
 firmware/export/lcd.h              |    7 +++--
 firmware/logf.c                    |    2 -
 23 files changed, 241 insertions(+), 133 deletions(-)

Comment by Matthias Mohr (aka Massa) (mmohr) - Monday, 24 April 2006, 13:31 GMT+1
sync with today's CVS (20060424):
(application/octet-stream)    scroll-margins_20060424.patch (41 KiB)
 apps/bookmark.c                    |   12 ++++----
 apps/debug_menu.c                  |   32 +++++++++++------------
 apps/gui/gwps-common.c             |   50 +++++++++++++++++++++++++++++++------
 apps/gui/gwps.c                    |    7 ++---
 apps/gui/list.c                    |    2 -
 apps/logfdisp.c                    |    2 -
 apps/onplay.c                      |    4 +-
 apps/pcm_recording.c               |    2 -
 apps/playlist.c                    |    8 ++---
 apps/plugin.c                      |   12 ++++----
 apps/recorder/recording.c          |    4 +-
 apps/screen_access.c               |    6 ++--
 apps/screen_access.h               |   11 ++++----
 apps/screens.c                     |   24 +++++++++--------
 apps/sound_menu.c                  |   11 ++++----
 firmware/drivers/lcd-16bit.c       |   44 ++++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c   |   14 +++++++---
 firmware/drivers/lcd-h100-remote.c |   25 +++++++++++-------
 firmware/drivers/lcd-h100.c        |   46 +++++++++++++++++++++++-----------
 firmware/drivers/lcd-recorder.c    |   44 ++++++++++++++++++++++----------
 firmware/export/lcd-remote.h       |    5 ++-
 firmware/export/lcd.h              |    7 +++--
 firmware/logf.c                    |    2 -
 23 files changed, 241 insertions(+), 133 deletions(-)

Comment by James Wilson (Pool) - Saturday, 13 May 2006, 01:53 GMT+1
Can we get another sync please with the latest CVS I'm getting HUNK errors 1 out of 9
Comment by Matthias Mohr (aka Massa) (mmohr) - Monday, 15 May 2006, 17:41 GMT+1
Sorry, I don't have time atm. - so somebody else has to do it.
But beware, I think it's not only synching - there has to be some rework to make it properly work again...
(I tried it a week ago and it had some weird effects...)
Comment by Chris Banes (senab) - Monday, 29 May 2006, 10:51 GMT+1
Here's a resync made by P.I. Julius
   scroll-margins-j-20060528.patch (40.1 KiB)
 /scroll-margins_20060424.patch          |only
 apps/bookmark.c                         |   12 +++----
 apps/debug_menu.c                       |   34 ++++++++++-----------
 apps/debug_menu.c.orig                  |only
 apps/gui/gwps-common.c                  |   50 +++++++++++++++++++++++++++-----
 apps/gui/gwps-common.c.orig             |only
 apps/gui/gwps.c                         |    7 +---
 apps/gui/list.c                         |    2 -
 apps/logfdisp.c                         |    2 -
 apps/onplay.c                           |    4 +-
 apps/onplay.c.orig                      |only
 apps/pcm_recording.c                    |    2 -
 apps/playlist.c                         |    8 ++---
 apps/playlist.c.orig                    |only
 apps/plugin.c                           |   12 +++----
 apps/plugin.c.orig                      |only
 apps/recorder/recording.c               |    4 +-
 apps/recorder/recording.c.orig          |only
 apps/screen_access.c                    |    8 +++--
 apps/screen_access.h                    |   11 +++----
 apps/screens.c                          |   24 ++++++++-------
 apps/screens.c.orig                     |only
 apps/sound_menu.c                       |   11 +++----
 apps/sound_menu.c.orig                  |only
 firmware/drivers/lcd-16bit.c            |   44 +++++++++++++++++++---------
 firmware/drivers/lcd-2bit-horz.c        |   14 ++++++--
 firmware/drivers/lcd-h100-remote.c      |   25 ++++++++++------
 firmware/drivers/lcd-h100-remote.c.orig |only
 firmware/drivers/lcd-h100.c             |   46 ++++++++++++++++++++---------
 firmware/drivers/lcd-h100.c.orig        |only
 firmware/drivers/lcd-recorder.c         |   44 +++++++++++++++++++---------
 firmware/drivers/lcd-recorder.c.orig    |only
 firmware/export/lcd-remote.h            |    5 +--
 firmware/export/lcd.h                   |    7 +++-
 firmware/logf.c                         |    2 -
 35 files changed, 243 insertions(+), 135 deletions(-)

Comment by Nicolas Pennequin (nicolas_p) - Thursday, 15 June 2006, 19:14 GMT+1
Sync to current CVS
(application/octet-stream)    scroll_margins_20060615.patch (41.5 KiB)
 apps/bookmark.c                    |   12 ++++----
 apps/debug_menu.c                  |   34 ++++++++++++-------------
 apps/gui/gwps-common.c             |   50 +++++++++++++++++++++++++++++++------
 apps/gui/gwps.c                    |    7 ++---
 apps/gui/list.c                    |    2 -
 apps/logfdisp.c                    |    2 -
 apps/onplay.c                      |    4 +-
 apps/pcm_recording.c               |    2 -
 apps/playlist.c                    |    8 ++---
 apps/plugin.c                      |   12 ++++----
 apps/recorder/recording.c          |    4 +-
 apps/screen_access.c               |    6 ++--
 apps/screen_access.h               |   11 ++++----
 apps/screens.c                     |   24 +++++++++--------
 apps/sound_menu.c                  |   11 ++++----
 firmware/drivers/lcd-16bit.c       |   44 ++++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c   |   14 +++++++---
 firmware/drivers/lcd-h100-remote.c |   25 +++++++++++-------
 firmware/drivers/lcd-h100.c        |   46 +++++++++++++++++++++++-----------
 firmware/drivers/lcd-recorder.c    |   44 ++++++++++++++++++++++----------
 firmware/export/lcd-remote.h       |    5 ++-
 firmware/export/lcd.h              |    7 +++--
 firmware/logf.c                    |    2 -
 23 files changed, 242 insertions(+), 134 deletions(-)

Comment by JP (salival) - Tuesday, 25 July 2006, 16:18 GMT+1
Would someone be so kind to sync it to a recent cvs? since I can't get it to work properly myself. Thanks in advance.
Comment by JP (salival) - Tuesday, 25 July 2006, 22:35 GMT+1
My request is already fulfilled thanks to drippydonut @ misticriver
(application/octet-stream)    scroll-margins-DD_20060725.patch (37.6 KiB)
 apps/bookmark.c                    |   12 ++++----
 apps/debug_menu.c                  |   34 ++++++++++++-------------
 apps/gui/gwps-common.c             |   50 +++++++++++++++++++++++++++++++------
 apps/gui/gwps.c                    |    7 ++---
 apps/gui/list.c                    |    2 -
 apps/logfdisp.c                    |    2 -
 apps/onplay.c                      |    4 +-
 apps/pcm_recording.c               |    2 -
 apps/playlist.c                    |    8 ++---
 apps/plugin.c                      |   12 ++++----
 apps/recorder/recording.c          |    4 +-
 apps/screen_access.c               |    6 ++--
 apps/screen_access.h               |   11 ++++----
 apps/screens.c                     |   22 ++++++++--------
 apps/sound_menu.c                  |   11 ++++----
 firmware/drivers/lcd-16bit.c       |   44 ++++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c   |   14 +++++++---
 firmware/drivers/lcd-h100-remote.c |   25 +++++++++++-------
 firmware/drivers/lcd-h100.c        |   46 +++++++++++++++++++++++-----------
 firmware/drivers/lcd-recorder.c    |   44 ++++++++++++++++++++++----------
 firmware/export/lcd-remote.h       |    5 ++-
 firmware/export/lcd.h              |    7 +++--
 firmware/logf.c                    |    2 -
 23 files changed, 241 insertions(+), 133 deletions(-)

Comment by Max Weninger (maxwen) - Saturday, 12 August 2006, 16:52 GMT+1
Updated patch to work agains CVS HEAD from 12.08.2006
   scroll-margins-DD_20060812.patch (44 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 +++++++++++------------
 apps/gui/gwps-common.c                |   50 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/pcm_recording.c                  |    2 -
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 ++++++++++++++++++++---------
 firmware/drivers/lcd-2bit-horz.c      |   14 ++++++---
 firmware/drivers/lcd-h100-remote.c    |   25 ++++++++++-------
 firmware/drivers/lcd-h100.c           |   46 +++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 ++++++++++++++++++++---------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 ++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 24 files changed, 257 insertions(+), 142 deletions(-)

Comment by Norbert Preining (norbusan) - Thursday, 24 August 2006, 09:47 GMT+1
Hi Max!
The recent changes in cvs (23.8,20:07,Mark Arigo):
Allow scrolling lines with different x-margins. The margin at the time of the call
to puts_scroll will be used as the margin for that line.
have broken the last patch. Does this mean that a similar functionality will be included in CVS soon, or can we adjust the patch to work with the new CVS code.

Thanks a lot and all the best

Norbert
Comment by Max Weninger (maxwen) - Thursday, 24 August 2006, 13:35 GMT+1
I am still at CVS from 20060820 where the patch still applies
Will check with CVS HEAD asap
Comment by Max Weninger (maxwen) - Thursday, 24 August 2006, 23:50 GMT+1
IHMO the change is not changing this patch
just the order of two lines has switched

Updated patch to work against CVS from 20060824
   scroll-margins-DD_20060824.patch (42.3 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   32 ++++++++++-----------
 apps/gui/gwps-common.c                |   50 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 ++++++++++++++++++++---------
 firmware/drivers/lcd-2bit-horz.c      |   14 ++++++---
 firmware/drivers/lcd-h100-remote.c    |   23 ++++++++++-----
 firmware/drivers/lcd-h100.c           |   46 +++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 ++++++++++++++++++++---------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 ++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 23 files changed, 254 insertions(+), 139 deletions(-)

Comment by Norbert Preining (norbusan) - Friday, 25 August 2006, 08:06 GMT+1
Hi Max!
Thanks a lot. The patch does work after some small changes:
drivers/lcd-h100-remote.c:1398: error: `xmargin' undeclared (first use in this function)
I changed it to leftmargin. And
debug_menu.c:1240: error: too few arguments to function `lcd_setmargins'
there is a lcd_setmargins(0,0) left over, I added in the middle the LCD_WIDTH. This way it did compile.

I attach a fixed patch against current cvs for those who want to have it.

Thanks a lot and all the best

Norbert
   scroll-margins-DD_20060824-fixed.patch (38.8 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 +++++++++++------------
 apps/gui/gwps-common.c                |   50 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 ++++++++++++++++++++---------
 firmware/drivers/lcd-2bit-horz.c      |   14 ++++++---
 firmware/drivers/lcd-h100-remote.c    |   25 ++++++++++-------
 firmware/drivers/lcd-h100.c           |   46 +++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 ++++++++++++++++++++---------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 ++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 23 files changed, 256 insertions(+), 141 deletions(-)

Comment by Max Weninger (maxwen) - Friday, 25 August 2006, 10:41 GMT+1
Ooops!

I only tried it for the simulator and x5 :-(

Thanks for fixing it
Comment by Nicolas Pennequin (nicolas_p) - Tuesday, 29 August 2006, 04:59 GMT+1
updated for current CVS.
(application/octet-stream)    scroll_margins_20060829.patch (42.4 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 ++++++++++++------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-h100.c           |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 23 files changed, 255 insertions(+), 140 deletions(-)

Comment by Matthias Mohr (aka Massa) (mmohr) - Monday, 04 September 2006, 23:27 GMT+1
I currently notice a problem when combining this patch with the albumart patch ( FS#3045 ):
I tried to use margins with a bitmap right to it (the margins starts at x=1 and ends one
pixel before the bitmap begins)
If a line left of the bitmap starts to scroll, the line flickers inside the bitmap...

Any idea what can cause this behaviour?
Comment by Jon (ace214) - Monday, 09 October 2006, 17:34 GMT+1
patching file apps/plugin.c
Hunk #1 succeeded at 560 (offset -1 lines).
Hunk #2 succeeded at 574 (offset -1 lines).
Hunk #3 FAILED at 600.
Hunk #4 FAILED at 610.
2 out of 4 hunks FAILED -- saving rejects to file apps/plugin.c.rej

patching file apps/sound_menu.c
Hunk #1 succeeded at 742 (offset 1 line).
Hunk #2 succeeded at 790 (offset 1 line).
Hunk #3 FAILED at 1041.
1 out of 3 hunks FAILED -- saving rejects to file apps/sound_menu.c.rej

Comment by Paul van der Heu (paulheu) - Monday, 09 October 2006, 18:20 GMT+1
And your point is?
Comment by Dave Chapman (linuxstb) - Monday, 09 October 2006, 21:44 GMT+1
The point appears to be that the patch is out of sync with CVS and needs updating.
Comment by Jon (ace214) - Tuesday, 10 October 2006, 21:14 GMT+1
sync
(application/octet-stream)    scroll_margins_20060829_sync20061010.patch (42.4 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 ++++++++++++------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-h100.c           |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 23 files changed, 255 insertions(+), 140 deletions(-)

Comment by Matthias Mohr (aka Massa) (mmohr) - Monday, 23 October 2006, 10:40 GMT+1
Small bugfix (old declaration in plugin.h and wrong function calls in viewer and solitaire-plugins)
and sync to today's CVS...
(application/octet-stream)    scroll-margins_20061023.patch (44.6 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 ++++++++++++------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-h100.c           |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 26 files changed, 260 insertions(+), 145 deletions(-)

Comment by Matthias Mohr (aka Massa) (mmohr) - Wednesday, 25 October 2006, 10:40 GMT+1
sync to today's CVS
(application/octet-stream)    scroll-margins_20061025.patch (44.6 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 ++++++++++++------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   11 ++++---
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-h100.c           |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-recorder.c       |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 26 files changed, 260 insertions(+), 145 deletions(-)

Comment by Nicolas Pennequin (nicolas_p) - Wednesday, 08 November 2006, 22:18 GMT+1
sync to current CVS
   scroll-margins_20061108.patch (44.4 KiB)
 apps/bookmark.c                                 |   12 +++---
 apps/debug_menu.c                               |   34 ++++++++---------
 apps/gui/gwps-common.c                          |   48 +++++++++++++++++++++---
 apps/gui/gwps.c                                 |    7 +--
 apps/gui/list.c                                 |    2 -
 apps/logfdisp.c                                 |    2 -
 apps/onplay.c                                   |    4 +-
 apps/playlist.c                                 |    8 ++--
 apps/plugin.c                                   |   12 +++---
 apps/plugin.h                                   |    2 -
 apps/plugins/solitaire.c                        |    4 +-
 apps/plugins/viewer.c                           |    4 +-
 apps/recorder/recording.c                       |    4 +-
 apps/screen_access.c                            |    6 ++-
 apps/screen_access.h                            |   11 +++--
 apps/screens.c                                  |   22 ++++++-----
 apps/sound_menu.c                               |   11 +++--
 firmware/drivers/lcd-16bit.c                    |   44 +++++++++++++++-------
 firmware/drivers/lcd-2bit-horz.c                |   14 +++++--
 firmware/drivers/lcd-h100-remote.c              |   25 ++++++++----
 firmware/drivers/lcd-recorder.c                 |   44 +++++++++++++++-------
 firmware/drivers/lcd-remote-2bit-vi.c           |   25 ++++++++----
 firmware/export/lcd-remote.h                    |    5 +-
 firmware/export/lcd.h                           |    7 ++-
 firmware/logf.c                                 |    2 -
 firmware/target/coldfire/iriver/h100/lcd-h100.c |   46 ++++++++++++++++-------
 26 files changed, 260 insertions(+), 145 deletions(-)

Comment by Nicolas Pennequin (nicolas_p) - Tuesday, 14 November 2006, 15:42 GMT+1
sync again
   scroll-margins_20061114.patch (44.5 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 ++++++++++++------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   12 ++++----
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 26 files changed, 261 insertions(+), 145 deletions(-)

Comment by Johannes Voggenthaler (ZincAlloy) - Monday, 11 December 2006, 15:14 GMT+1
seems to be out of sync again.
Comment by Nicolas Pennequin (nicolas_p) - Friday, 05 January 2007, 20:31 GMT+1
Sync to today's CVS
   scroll-margins_20070105.patch (48.2 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   34 ++++++++++++------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   12 ++++----
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 26 files changed, 261 insertions(+), 145 deletions(-)

Comment by Nathan Hale (Incubus-1) - Sunday, 11 February 2007, 21:49 GMT+1
The patch applied successfully, but I get the following errors when trying to compile for the Gigabeat F/X port 20070210-build.

debug_menu.c: In function 'dbg_lcd_power_off':
debug_menu.c:2069: error: too few arguments to function 'lcd_setmargins'
debug_menu.c: In function 'dbg_buttonlights':
debug_menu.c:2111: error: too few arguments to function 'lcd_setmargins'

I am able to compile a clean build and also after adding the album art patch.

Thanks for any help.
Comment by Nicolas Pennequin (nicolas_p) - Monday, 12 February 2007, 22:04 GMT+1
This one should work.
   scroll-margins_20070212.patch (41.8 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   38 +++++++++++++-------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   12 ++++----
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   14 +++++++--
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 26 files changed, 263 insertions(+), 147 deletions(-)

Comment by Chris (decayed.cell) - Tuesday, 13 February 2007, 13:10 GMT+1
Breaks the 4G Grayscale and iPod Mini 2G builds, seems to be okay with 5G and Nano (problem with b/w targets?)
Comment by Nicolas Pennequin (nicolas_p) - Tuesday, 13 February 2007, 13:44 GMT+1
Better now ? :)
   scroll-margins_20070213.patch (43.3 KiB)
 apps/bookmark.c                       |   12 ++++----
 apps/debug_menu.c                     |   38 +++++++++++++-------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    2 -
 apps/logfdisp.c                       |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 apps/sound_menu.c                     |   12 ++++----
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++------
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-h100-remote.c    |   25 +++++++++++------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 26 files changed, 269 insertions(+), 152 deletions(-)

Comment by Chris (decayed.cell) - Tuesday, 13 February 2007, 21:33 GMT+1
Cheers ^^
Comment by Chris (decayed.cell) - Wednesday, 14 February 2007, 11:57 GMT+1
Don't think this is quite working on the 5G, for example,

%s%m|18|209|%al%?ia<%ia|%?d2<%d2|(Artist Unknown)>>

the |18|209| actually come up on screen?
Comment by Derek Van Ittersum (derekvan) - Monday, 19 February 2007, 16:28 GMT+1
Hi, great patch. Recent changes to bookmark.c seem to have broken it though. It patches fine, but when I try to compile, I get the following error:

bookmark.c: In function 'select_bookmark':
bookmark.c:553: error: too few arguments to function 'screens[i]setmargins'

I don't get the error in compiling when I remove the patch. I'm compiling for a Gigabeat F.

Thanks for any help.
Comment by Paul van der Heu (paulheu) - Monday, 19 February 2007, 18:26 GMT+1
edit the line to include 'screens[i].width' as second to last argument

So it reads: screens[i].setmargins(XXXX, screens[i].width, XXXX);
Comment by Bobby Graese (TrueJournals) - Friday, 09 March 2007, 03:35 GMT+1
Just a question... will this ever be committed? The progress shows 100% complete, and the last "small bugfix" was on Monday, 23 October 2006... Are there any known bugs left? What are they?
Comment by Dave Hooper (stripwax) - Saturday, 10 March 2007, 18:33 GMT+1
Sync'ed to latest svn
(application/octet-stream)    scroll-margins_20070310.patch (42.1 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   42 ++++++++++++++---------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    4 +-
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   26 +++++++++---------
 apps/sound_menu.c                     |   12 ++++----
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++------
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 27 files changed, 256 insertions(+), 146 deletions(-)

Comment by Marc R. (rasmusma) - Saturday, 10 March 2007, 21:10 GMT+1
You patch is for revision 12701
Since revision 12704 this patch is not working due to changes in the files list.c and solitaire.c
Comment by Dave Hooper (stripwax) - Sunday, 11 March 2007, 15:13 GMT+1
Don't worry about that, those changes to list.c and solitaire.c were reverted in svn anyway (as 12719). I just tried repatching latest svn (12723) and it worked fine.
Comment by Dan Train (Dano) - Monday, 12 March 2007, 11:10 GMT+1
Hello, I am new to this lark and am having some trouble using your patch. This is probably not the place to ask but ohwell. When I try to patch and compile using cygwin from the latest build for my iRiver H320 I get the following error:

CC drivers/lcd-remote-1bit-v.c
drivers/lcd-remote-1bit-v.c:82: error: conflicting types for 'lcd_remote_setmargins'
export/lcd-remote.h:145: error: previous declaration of 'lcd_remote_setmargins' was here
drivers/lcd-remote-1bit-v.c:82: error: conflicting types for 'lcd_remote_setmargins'
export/lcd-remote.h:145: error: previous declaration of 'lcd_remote_setmargins' was here
make[1]: *** [dir] Error 1
make: *** [all] Error 2

This is doubly annoying since I don't own an LCD remote so really don't care what is displayed on it!
Comment by Marc R. (rasmusma) - Monday, 12 March 2007, 11:42 GMT+1
I have the following code in my wps-file:
%s%m|16|144|%?it<%it|%d2>
%s%m|16|144|%alNext: %?It<%It|%Fn>


The first line scrolls to the end of the text, stops and scrolls back to the beginning.
In the second line it seems the text will get copied several time.
Like:
strcpy(showntext, "Test ");
for(a=0;a<UNKNOWN_NUMBER;a++)
strcat(showntext, "Test ");

=> showntext="Test Test Test Test Test Test Test" (or something like that).
The result is, that the text keeps scrolling without changing direction.
Is this a bug or a feature?
Comment by Chris (decayed.cell) - Monday, 12 March 2007, 11:45 GMT+1
I'm pretty sure its supposed to keep scrolling one way. The 'back and forth' scroll is another FS patch, can't remember which number
Comment by Chris Banes (senab) - Monday, 12 March 2007, 11:50 GMT+1
Chris,

The scrolling does change direction in this patch, at least it should :D
Comment by Chris (decayed.cell) - Monday, 12 March 2007, 11:58 GMT+1
The last time I tried it didn't =/
Comment by Max Weninger (maxwen) - Monday, 12 March 2007, 12:41 GMT+1
The scrolling "type" depends on the length of the string
Comment by Max Weninger (maxwen) - Monday, 12 March 2007, 12:43 GMT+1
But can be influenced from the setting "Bidirectional Scroll Limit"
(which is 50% by default IMHO)
Comment by Marc R. (rasmusma) - Monday, 12 March 2007, 13:02 GMT+1
> The scrolling "type" depends on the length of the string

I just found that one out.
so it's a feature :)

Comment by Dave Hooper (stripwax) - Monday, 12 March 2007, 21:48 GMT+1
Dano: I'll take a look at updating in a minute or two, I confess I didn't try all targets
Comment by Dave Hooper (stripwax) - Monday, 12 March 2007, 22:06 GMT+1
Dano: hm, the H3xx lcd driver seems to build ok here. Did you get a fresh update of source from svn and did you apply any other patches first (and/or were any conflicts or failures reported when you applied the scroll_margins_20070310 patch?)
Comment by Marc R. (rasmusma) - Wednesday, 14 March 2007, 10:55 GMT+1
Is the code for the file sound_menu.c needed?
This file has been removed from the current svn-tree.
Comment by Dan Train (Dano) - Wednesday, 14 March 2007, 11:15 GMT+1
Yeah I just noticed that when I went to try and confirm stripwax's questions with the latest build.

Anyway previously I had got the 20070312 source from the archive daily builds page, and I had also applied the latest album art patch and eq wps tags patch, and there weren't any errors or conflicts applying any of the patches.

Thanks very much for your help.
Comment by Marc R. (rasmusma) - Friday, 16 March 2007, 05:45 GMT+1
Will there be a patch for the current svn-build?
Comment by Dave Hooper (stripwax) - Saturday, 17 March 2007, 00:48 GMT+1
Rasmusma: Sync'd to svn as-of a couple of hours ago
Dano: hopefully this time the patch will work for you also, I've manually updated the 1bit remote driver
(application/octet-stream)    scroll-margins_20070316.patch (46.5 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   42 ++++++++++++++---------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    4 +-
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   26 +++++++++---------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++------
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 +++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 28 files changed, 286 insertions(+), 162 deletions(-)

Comment by Dan Train (Dano) - Sunday, 18 March 2007, 19:29 GMT+1
It works beautifully now, thank you very much for your help stripwax!
Comment by David Hall (Soap) - Wednesday, 28 March 2007, 02:40 GMT+1
I am not 100% confident in my sync to 12944. Someone probably should test with a LCD remote. (Or just manually sync stripwax's lastest work.)
It appears to work fine on my iPods. (Famous last words.)
   scroll-margins_2007_0327.patch (46.5 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   48 +++++++++++++++++++++++++++++-----
 apps/gui/gwps.c                       |    7 ++--
 apps/gui/list.c                       |    4 +-
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   26 +++++++++---------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++------
 firmware/drivers/lcd-2bit-vert.c      |   46 ++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 +++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++-
 firmware/logf.c                       |    2 -
 28 files changed, 285 insertions(+), 161 deletions(-)

Comment by Chris Olin (Landus) - Thursday, 05 April 2007, 06:21 GMT+1
With some minor failed hunks in gwps/gui/gwps-common.c that can easily be manually added in by hand, Soap's patch works the best right now.
Comment by Marc R. (rasmusma) - Thursday, 05 April 2007, 06:31 GMT+1
Would there be any problems to add this to the svn-tree?
Comment by Jordan (aqtrans) - Thursday, 05 April 2007, 23:25 GMT+1
I can't seem to get this to work in the new SVN.
I get "gui/gwps-common.c: In function ‘get_line’:
gui/gwps-common.c:1421: error: ‘fmt’ undeclared (first use in this function)
gui/gwps-common.c:1421: error: (Each undeclared identifier is reported only once
gui/gwps-common.c:1421: error: for each function it appears in.)"
And 1421 is the whole "case 'm': /* margins */" hunk of code.
Can someone upload a sync'd patch, or at least tell me what I've done wrong?
Comment by Nicolas Pennequin (nicolas_p) - Friday, 06 April 2007, 03:09 GMT+1
Some parts of the patch will need to be rewritten to be made compatible with the WPS tokenizer.
Comment by Dave Hooper (stripwax) - Saturday, 07 April 2007, 14:57 GMT+1
I'm working on the rewrite.
Comment by Dave Hooper (stripwax) - Saturday, 07 April 2007, 18:14 GMT+1
Sync'd. Added new WPS virtual tokens to handle the left and right margins. Shout if you find any problems with scrolling margins in WPSes that used to work but break with this new patch.
(application/octet-stream)    scroll-margins_20070407.patch (48.5 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   27 +++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   26 ++++++++++--------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 30 files changed, 292 insertions(+), 165 deletions(-)

Comment by Dave Hooper (stripwax) - Sunday, 08 April 2007, 11:54 GMT+1
Sync'd again.
(application/octet-stream)    scroll-margins_20070408.patch (50.3 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   30 +++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   26 ++++++++++--------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 firmware/target/arm/crt0-pp.S         |    5 +++
 tools/configure                       |   45 +++++++++++++++++++++++---------
 32 files changed, 332 insertions(+), 178 deletions(-)

Comment by Dave Hooper (stripwax) - Monday, 09 April 2007, 12:05 GMT+1
Sync'd again. Unfortunately the new WPS parser is a moving target, and the underlying function definitions keep changing..
(application/octet-stream)    scroll-margins_20070409.patch (48.4 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   30 +++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   12 ++++----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   26 ++++++++++--------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 30 files changed, 295 insertions(+), 165 deletions(-)

Comment by Dave Hooper (stripwax) - Thursday, 12 April 2007, 23:24 GMT+1
Sync'd again. Also fixes problem of dynamic data on non-scrolling lines not updating correctly now that gwps-common has been fixed in svn to handle WPS_REFRESH_SCROLL properly (the %m tag should NOT have had WPS_REFRESH_SCROLL flag in wps_parser.c in the first place - apologies)
(application/octet-stream)    scroll-margins_20070412.patch (49.4 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   30 +++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   14 +++++-----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 tools/configure                       |   45 +++++++++++++++++++++++---------
 31 files changed, 326 insertions(+), 177 deletions(-)

Comment by Oleh Hradowy (MadCow15) - Monday, 16 April 2007, 00:06 GMT+1
Needs another sync. Applies with many failed hunks.
Comment by Travis Tooke (tdtooke) - Monday, 16 April 2007, 05:59 GMT+1
I think you may be doing something wrong. I just updated to revision 13174 just now and this patch applied without incident.
Comment by Oleh Hradowy (MadCow15) - Monday, 16 April 2007, 13:31 GMT+1
Hmm. I'll try to apply to a clean SVN then. Maybe some other patch is messing it up.
Comment by Dave Hooper (stripwax) - Tuesday, 24 April 2007, 14:59 GMT+1
Sync'd and fixed. Today's wps parser fix in svn revealed an off-by-one error in my parse function which was now caught by the improved error check (meaning wps that used scroll margins were no longer loadable!) Also needed resyn due to bookmark.c change in svn
(application/octet-stream)    scroll-margins_20070424.patch (48 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   30 +++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   14 +++++-----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 30 files changed, 294 insertions(+), 164 deletions(-)

Comment by Marc R. (rasmusma) - Tuesday, 24 April 2007, 16:58 GMT+1
hmm
I ask again: Would there be any problems to ADD this patch to the svn tree?
Comment by Gary Light (evilg123) - Wednesday, 25 April 2007, 03:24 GMT+1
for anyone building for a gigabeat and getting errors on debug_menu.c
edit line 1140 in apps/debug_menu.c so it reads:

lcd_setmargins(0, LCD_WIDTH, 0);

Comment by Dave Hooper (stripwax) - Thursday, 26 April 2007, 23:33 GMT+1
sync'd and updated. If using albumart too, use latest albumart patch too to avoid sync conflicts.
(application/octet-stream)    scroll-margins_20070426.patch (48.4 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   42 +++++++++++++++---------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   31 ++++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   14 +++++-----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 30 files changed, 296 insertions(+), 165 deletions(-)

Comment by Chris Banes (senab) - Sunday, 29 April 2007, 00:17 GMT+1
Has anyone tried this? Because I'm having trouble loading up WPS's. It's either this or the Album Art patch.
Comment by Dave Hooper (stripwax) - Sunday, 29 April 2007, 21:21 GMT+1
Senab - I have been running my own build using this patch and the album art patch without any problems.
Comment by Jon (ace214) - Thursday, 10 May 2007, 04:42 GMT+1
Out of sync- I fixed one simple update hunk but someone who knows the code needs to look at the others and see if they're needed

Hunk 1 of apps/onplay.c and Hunk 20 of apps/debug_menu.c

Attached is the otherwise synced version.
(application/octet-stream)    06-scroll-margins_20070509-broken.patch (48.4 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/bookmark.c                       |    4 +-
 apps/debug_menu.c                     |   42 +++++++++++++++---------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   31 ++++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/onplay.c                         |    4 +-
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   14 +++++-----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 30 files changed, 296 insertions(+), 165 deletions(-)

Comment by Travis Tooke (tdtooke) - Tuesday, 15 May 2007, 08:48 GMT+1
I wish I could say whether or not those 2 hunks are truly necessary, but for what it's worth I haven't had any problems whatsoever using the broken patch.
Comment by Jon (ace214) - Tuesday, 15 May 2007, 15:15 GMT+1
Same here.
Comment by Travis Tooke (tdtooke) - Monday, 28 May 2007, 06:33 GMT+1
FS #7158 being commited breaks this patch.
Comment by Gary Light (evilg123) - Monday, 28 May 2007, 16:36 GMT+1
Are you sure it's broken? I took a look at the .rej and it's trying to add rb->lcdsetmargins(0,LCD_WIDTH, 0) so I took a look at bookmark.c for
rb->lcdsetmargins, this function (or whatever its called) isn't in bookmark.c anymore, so I tried compiling and it works. Did you try compiling?
Comment by Travis Tooke (tdtooke) - Tuesday, 29 May 2007, 08:34 GMT+1
Ah, I should probably do my homework before posting.
Comment by Matthew Schneider (mschneider) - Wednesday, 20 June 2007, 00:20 GMT+1
I think it's out of sync
Comment by Tan Yu Sheng (Farpenoodle) - Wednesday, 20 June 2007, 14:33 GMT+1
I think this works.
   scroll-margins_20070618.patch (47 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   31 ++++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/playlist.c                       |    8 ++---
 apps/plugin.c                         |   14 +++++-----
 apps/plugin.h                         |    2 -
 apps/plugins/solitaire.c              |    4 +-
 apps/plugins/viewer.c                 |    4 +-
 apps/recorder/recording.c             |    4 +-
 apps/screen_access.c                  |    6 ++--
 apps/screen_access.h                  |   11 ++++---
 apps/screens.c                        |   22 ++++++++-------
 firmware/drivers/lcd-16bit.c          |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-1bit-vert.c      |   44 +++++++++++++++++++++----------
 firmware/drivers/lcd-2bit-horz.c      |   25 +++++++++++-------
 firmware/drivers/lcd-2bit-vert.c      |   46 +++++++++++++++++++++++----------
 firmware/drivers/lcd-remote-1bit-v.c  |   47 ++++++++++++++++++++++------------
 firmware/drivers/lcd-remote-2bit-vi.c |   25 +++++++++++-------
 firmware/export/lcd-remote.h          |    5 ++-
 firmware/export/lcd.h                 |    7 +++--
 firmware/logf.c                       |    2 -
 28 files changed, 291 insertions(+), 160 deletions(-)

Comment by Matthew Evans (onocentaur) - Friday, 22 June 2007, 20:45 GMT+1
I get two hunks failing and it won't make.
Comment by Andrej W. (ch_604) - Saturday, 23 June 2007, 04:22 GMT+1
i too get a failure at lcd.h (hunk #2 at 393) and at lcd-16bit.c (hunk #7 at 947)

what to do...
Comment by Tan Yu Sheng (Farpenoodle) - Saturday, 23 June 2007, 21:39 GMT+1
Sync again then.
   scroll-margins_20070623.patch (47.2 KiB)
 apps/alarm_menu.c                     |    2 -
 apps/debug_menu.c                     |   40 ++++++++++++++--------------
 apps/gui/gwps-common.c                |   30 ++++++++++++++-------
 apps/gui/gwps.c                       |    7 ++---
 apps/gui/gwps.h                       |    2 +
 apps/gui/list.c                       |    4 +-
 apps/gui/wps_parser.c                 |   31 ++++++++++++++++++++++
 apps/logfdisp.c                       |    2 -
 apps/menus/main_menu.c                |    2 -
 apps/menus/recording_menu.c           |   11 ++++---
 apps/playlist.c