diff options
author | Thomas Martitz <kugel@rockbox.org> | 2011-08-14 13:38:10 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2011-08-14 13:38:10 +0000 |
commit | dbdbc242acf09a73fb48483993fb290a595acc57 (patch) | |
tree | 660e7359ee1b5806dc5ca202af2de9c7aa50a184 /apps/misc.c | |
parent | 2d0e63e1366c1f75899171d2123b9dd4600b1f59 (diff) | |
download | rockbox-dbdbc242acf09a73fb48483993fb290a595acc57.tar.gz rockbox-dbdbc242acf09a73fb48483993fb290a595acc57.zip |
Remove hosted_get_volume(), as event data is available in button_get_data().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30300 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.c')
-rw-r--r-- | apps/misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c index 83e42cf3e0..b57e84efb3 100644 --- a/apps/misc.c +++ b/apps/misc.c | |||
@@ -622,7 +622,9 @@ long default_event_handler_ex(long event, void (*callback)(void *), void *parame | |||
622 | case SYS_VOLUME_CHANGED: | 622 | case SYS_VOLUME_CHANGED: |
623 | { | 623 | { |
624 | static bool firstvolume = true; | 624 | static bool firstvolume = true; |
625 | int volume = hosted_get_volume(); | 625 | /* kludge: since this events go to the button_queue, |
626 | * event data is available in the last button data */ | ||
627 | int volume = button_get_data(); | ||
626 | DEBUGF("SYS_VOLUME_CHANGED: %d\n", volume); | 628 | DEBUGF("SYS_VOLUME_CHANGED: %d\n", volume); |
627 | if (global_settings.volume != volume) { | 629 | if (global_settings.volume != volume) { |
628 | global_settings.volume = volume; | 630 | global_settings.volume = volume; |