FS#11925 - Add a proper "current screen" system

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Friday, 11 February 2011, 00:10 GMT
Last edited by Jonathan Gordon (jdgordon) - Wednesday, 01 June 2011, 14:42 GMT
Task Type Patches
Category User Interface
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.7.1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


This patch makes adds a very simple system so themers can know exactly which screen it is in (to mangle the sbs as required).

This first patch is untested and only adds the browsers and quickscreen. others can be added if this is wanted/works.

All that is needed to do to add a new screen is add the screen to the enum at the bottom of misc.h, then when entering the screen call push_current_screen() and when exiting call pop_current_screen().
This task depends upon

Closed by  Jonathan Gordon (jdgordon)
Wednesday, 01 June 2011, 14:42 GMT
Reason for closing:  Accepted
Additional comments about closing:  r29944
Comment by Michael Sevakis (MikeS) - Friday, 11 February 2011, 02:45 GMT
Add tester .sbs and this one compiles :)
Comment by Jonathan Gordon (jdgordon) - Tuesday, 31 May 2011, 13:52 GMT
update to add a bunch more screens... want to commit soon... need a better enum prefix than SCREEN_
Comment by Jonathan Gordon (jdgordon) - Wednesday, 01 June 2011, 04:53 GMT
fix the ordering so %cs tag doesnt change the order