diff options
author | Thomas Martitz <kugel@rockbox.org> | 2009-03-23 03:08:56 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2009-03-23 03:08:56 +0000 |
commit | ced2724f7d513ea19ab7a0eb0a17647b81b08e4e (patch) | |
tree | 88193782f42f971950e321a331f2387757affccb /apps/gui/gwps-common.h | |
parent | a3cbb57b098e627e6a87a837b2c1c749b7c50121 (diff) | |
download | rockbox-ced2724f7d513ea19ab7a0eb0a17647b81b08e4e.tar.gz rockbox-ced2724f7d513ea19ab7a0eb0a17647b81b08e4e.zip |
Another wps rework:
*rename gui_wps_refresh() to gui_wps_redraw() and update() to gui_wps_update() to better describe what they do
*Clear things up and differentiate better between gui_wps_redraw()/gui_wps_display()/gui_wps_update() (it wasn't so what they're supposed to do before)
*cleanup gui_wps_display() and gui_wps_update() quite a bit
*Remove unused/unneeded code, do some pointer copying to save binsize, and code cleanup at several places
Visible changes should be small
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20483 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/gwps-common.h')
-rw-r--r-- | apps/gui/gwps-common.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/apps/gui/gwps-common.h b/apps/gui/gwps-common.h index 25ce435592..8752c1d162 100644 --- a/apps/gui/gwps-common.h +++ b/apps/gui/gwps-common.h | |||
@@ -25,14 +25,25 @@ | |||
25 | 25 | ||
26 | #include "gwps.h" | 26 | #include "gwps.h" |
27 | 27 | ||
28 | /* fades the volume, e.g. on pause or stop */ | ||
28 | void fade(bool fade_in, bool updatewps); | 29 | void fade(bool fade_in, bool updatewps); |
29 | bool gui_wps_display(void); | 30 | |
31 | /* Initially display the wps, can fall back to the build-in wps | ||
32 | * if the chosen wps is invalid */ | ||
33 | bool gui_wps_display(struct gui_wps *gui_wps); | ||
34 | |||
35 | /* return true if screen restore is needed | ||
36 | return false otherwise */ | ||
30 | bool update_onvol_change(struct gui_wps * gwps); | 37 | bool update_onvol_change(struct gui_wps * gwps); |
31 | bool update(struct gui_wps *gwps); | 38 | |
39 | /* Update track info related stuff, handles cue sheets as well, and redraw */ | ||
40 | bool gui_wps_update(struct gui_wps *gwps); | ||
41 | |||
32 | bool ffwd_rew(int button); | 42 | bool ffwd_rew(int button); |
33 | void display_keylock_text(bool locked); | 43 | void display_keylock_text(bool locked); |
34 | 44 | ||
35 | bool gui_wps_refresh(struct gui_wps *gwps, | 45 | /* Refresh the WPS according to refresh_mode. */ |
46 | bool gui_wps_redraw(struct gui_wps *gwps, | ||
36 | int ffwd_offset, | 47 | int ffwd_offset, |
37 | unsigned char refresh_mode); | 48 | unsigned refresh_mode); |
38 | #endif | 49 | #endif |