diff options
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, |