From 144df92bfb3bde9d843363ac5ab537c4d5ee24e3 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Sat, 19 Feb 2011 01:13:38 +0000 Subject: Android: Rewrite lcd subsystem to use the SurfaceView API. That enables drawing from outside the apps UI thread, i.e. from within the Rockbox native thread, without needing synchronization means, and adds determinism as to when the draw happens. It simplifies the drawing routines and adds a convinient way of detecting whether drawing should happen or not (surfaceCreated/Destroyed). It also restores max. fps on my phone which went down drastically with the gingerbread(CM7) update. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29333 a1c6a512-1295-4272-9138-f99709370657 --- apps/keymaps/keymap-android.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps') diff --git a/apps/keymaps/keymap-android.c b/apps/keymaps/keymap-android.c index df187e7..c822a64 100644 --- a/apps/keymaps/keymap-android.c +++ b/apps/keymaps/keymap-android.c @@ -50,6 +50,9 @@ static const struct button_mapping button_context_standard[] = { { ACTION_STD_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, { ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU }, + /* special hack to get a redraw on activity resume, see lcd-android.c */ + { ACTION_REDRAW, BUTTON_FORCE_REDRAW, BUTTON_NONE }, + LAST_ITEM_IN_LIST }; /* button_context_standard */ -- cgit v1.1