mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 02:27:39 -04:00
Initial maemo platform support
Adds Nokia N900, N810 and N800 support. Features: - Introduce maemo specific platform defines - Play audio in silent mode - Stop playback on incoming calls - Battery level readout - Bluetooth headset support - Save CPU by disabling screen updates if the display is off or the app doesn't have input focus - N900: GStreamer audio backend Kudos to kugel for the code review. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29248 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4d12904439
commit
5f037ac015
22 changed files with 970 additions and 22 deletions
|
@ -22,8 +22,12 @@
|
|||
#include "debug.h"
|
||||
#include "sim-ui-defines.h"
|
||||
#include "system.h"
|
||||
#include "button-sdl.h"
|
||||
#include "lcd-sdl.h"
|
||||
#include "screendump.h"
|
||||
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
||||
#include "maemo-thread.h"
|
||||
#endif
|
||||
|
||||
SDL_Surface* lcd_surface;
|
||||
|
||||
|
@ -123,6 +127,16 @@ void lcd_update(void)
|
|||
|
||||
void lcd_update_rect(int x_start, int y_start, int width, int height)
|
||||
{
|
||||
#if (CONFIG_PLATFORM & PLATFORM_MAEMO)
|
||||
/* Don't update display if not shown */
|
||||
if (!maemo_display_on)
|
||||
return;
|
||||
|
||||
/* Don't update if we don't have the input focus */
|
||||
if (!sdl_app_has_input_focus)
|
||||
return;
|
||||
#endif
|
||||
|
||||
sdl_update_rect(lcd_surface, x_start, y_start, width, height,
|
||||
LCD_WIDTH, LCD_HEIGHT, get_lcd_pixel);
|
||||
sdl_gui_update(lcd_surface, x_start, y_start, width,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue