summaryrefslogtreecommitdiff
path: root/uisimulator/common
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2009-10-20 21:54:59 +0000
committerThomas Martitz <kugel@rockbox.org>2009-10-20 21:54:59 +0000
commitd85c3ec41020a6c56b0d5d95a9ed790f57d73c6e (patch)
tree2f51ed47fee689024ed8c145634044362c8ed7d5 /uisimulator/common
parent774bacc692b4d5c7b769bb88d24e182db9e4656f (diff)
downloadrockbox-d85c3ec41020a6c56b0d5d95a9ed790f57d73c6e.tar.gz
rockbox-d85c3ec41020a6c56b0d5d95a9ed790f57d73c6e.zip
Convert lcd_activation callbacks to use the event system to allow for multiple parallel callbacks (for custom statusbar).
Increase maximum event count as we need more (I actually had a report about it during custom statusbar testing). Removed corresponding functions from the core and plugin api. Bump min version and sort. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23302 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/lcd-common.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c
index 52db776856..2acf4b386d 100644
--- a/uisimulator/common/lcd-common.c
+++ b/uisimulator/common/lcd-common.c
@@ -22,7 +22,9 @@
22 * 22 *
23 ****************************************************************************/ 23 ****************************************************************************/
24 24
25#include <stdbool.h>
25#include "config.h" 26#include "config.h"
27#include "system.h"
26#include "lcd.h" 28#include "lcd.h"
27 29
28#ifdef HAVE_LCD_ENABLE 30#ifdef HAVE_LCD_ENABLE
@@ -82,7 +84,7 @@ void lcd_awake(void)
82{ 84{
83 if (lcd_sleeping) 85 if (lcd_sleeping)
84 { 86 {
85 lcd_activation_call_hook(); 87 send_event(LCD_EVENT_ACTIVATION, NULL);
86 lcd_sleeping = false; 88 lcd_sleeping = false;
87 } 89 }
88} 90}
@@ -96,7 +98,7 @@ void lcd_enable(bool on)
96 /* lcd_awake will handle the activation call */ 98 /* lcd_awake will handle the activation call */
97 lcd_awake(); 99 lcd_awake();
98#else 100#else
99 lcd_activation_call_hook(); 101 send_event(LCD_EVENT_ACTIVATION, NULL);
100#endif 102#endif
101 } 103 }
102 lcd_enabled = on; 104 lcd_enabled = on;