From c8bd9129bf146c3c0bbacc744ab509709a004fd7 Mon Sep 17 00:00:00 2001 From: Martin Scarratt Date: Sun, 20 Aug 2006 21:33:40 +0000 Subject: Button action code for recording screen. Shouldnt make any noticable difference in recording screen button operation except for H300 I-River remote, which should now work as expected, -10 button = LCD off git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10666 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/peakmeter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apps/recorder/peakmeter.c') diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 39444fe787..0370f4deea 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c @@ -37,6 +37,7 @@ #ifdef CONFIG_BACKLIGHT #include "backlight.h" #endif +#include "action.h" #if CONFIG_CODEC == SWCODEC #include "pcm_playback.h" @@ -1222,7 +1223,7 @@ int peak_meter_draw_get_btn(int x, int y[], int height, int nb_screens) bool dopeek = true; while (TIME_BEFORE(current_tick, next_big_refresh)) { - button = button_get(false); + button = get_action(CONTEXT_RECSCREEN, TIMEOUT_NOBLOCK); if (button != BUTTON_NONE) { break; } -- cgit v1.2.3