diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-18 12:27:20 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-18 12:27:20 +0000 |
commit | 6cbc701d2a9890baa49f69f1692dddebf39e30cb (patch) | |
tree | 08f098ca1eb9ab308242e3e4dc1584691152ea1b /firmware/target/hosted/sdl/lcd-remote-bitmap.c | |
parent | d3735578c3d957e7bb68e2838024ab57bceade68 (diff) | |
download | rockbox-6cbc701d2a9890baa49f69f1692dddebf39e30cb.tar.gz rockbox-6cbc701d2a9890baa49f69f1692dddebf39e30cb.zip |
Rename sdl lcd initialization to (remote_)lcd_init_device which enables removing two #ifdef SIMULATOR and makes it happen as on target.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26137 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/sdl/lcd-remote-bitmap.c')
-rw-r--r-- | firmware/target/hosted/sdl/lcd-remote-bitmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/lcd-remote-bitmap.c b/firmware/target/hosted/sdl/lcd-remote-bitmap.c index 9972f3e423..86d45ef446 100644 --- a/firmware/target/hosted/sdl/lcd-remote-bitmap.c +++ b/firmware/target/hosted/sdl/lcd-remote-bitmap.c | |||
@@ -98,8 +98,10 @@ void sim_remote_backlight(int value) | |||
98 | } | 98 | } |
99 | 99 | ||
100 | /* initialise simulator lcd remote driver */ | 100 | /* initialise simulator lcd remote driver */ |
101 | void sim_lcd_remote_init(void) | 101 | void lcd_remote_init_device(void) |
102 | { | 102 | { |
103 | if (!showremote) | ||
104 | return; | ||
103 | remote_surface = SDL_CreateRGBSurface(SDL_SWSURFACE, | 105 | remote_surface = SDL_CreateRGBSurface(SDL_SWSURFACE, |
104 | LCD_REMOTE_WIDTH * display_zoom, | 106 | LCD_REMOTE_WIDTH * display_zoom, |
105 | LCD_REMOTE_HEIGHT * display_zoom, | 107 | LCD_REMOTE_HEIGHT * display_zoom, |