summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-02-19 01:13:38 +0000
committerThomas Martitz <kugel@rockbox.org>2011-02-19 01:13:38 +0000
commit144df92bfb3bde9d843363ac5ab537c4d5ee24e3 (patch)
tree237abe424decc33b7c1e9c8caa89b5a18cf0dd88 /apps
parent6cbb0e4229225adc1a8222acd21f6ce01b88e472 (diff)
downloadrockbox-144df92bfb3bde9d843363ac5ab537c4d5ee24e3.tar.gz
rockbox-144df92bfb3bde9d843363ac5ab537c4d5ee24e3.zip
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
Diffstat (limited to 'apps')
-rw-r--r--apps/keymaps/keymap-android.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/keymaps/keymap-android.c b/apps/keymaps/keymap-android.c
index df187e7ac8..c822a64fc2 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[] = {
50 { ACTION_STD_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU }, 50 { ACTION_STD_MENU, BUTTON_MENU|BUTTON_REL, BUTTON_MENU },
51 { ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU }, 51 { ACTION_STD_CONTEXT, BUTTON_MENU|BUTTON_REPEAT, BUTTON_MENU },
52 52
53 /* special hack to get a redraw on activity resume, see lcd-android.c */
54 { ACTION_REDRAW, BUTTON_FORCE_REDRAW, BUTTON_NONE },
55
53 LAST_ITEM_IN_LIST 56 LAST_ITEM_IN_LIST
54}; /* button_context_standard */ 57}; /* button_context_standard */
55 58