Rockbox mail archiveSubject: Re: Cleaning up duplicate scrolling code.
Re: Cleaning up duplicate scrolling code.
From: bk <mutualaid_at_gmail.com>
Date: Sat, 11 Mar 2006 13:08:09 -0500
On Sat, 2006-03-11 at 18:40 +0100, Fredrik Íhrn wrote:
> 3. Change the API and require all callers to pass in the screen struct.
> A big piece of surgery but probably the best option in the long run.
> This also allows the scrolling code to move into apps/gui where I think
> it better belongs.
I like this idea because it inches us closer to a possible viewport
implementation. I can imagine the screen struct being changed to
something like a viewport handle (or struct) at some point (with the
default being the 'root' viewport, the entire screen).
Received on 2006-03-11