void sim_lcd_update_rect(int x_start, int y_start, int width, int height) { sdl_update_rect(lcd_surface, x_start, y_start, width, height, SIM_LCD_WIDTH, SIM_LCD_HEIGHT, get_lcd_pixel); sdl_gui_update(lcd_surface, x_start, y_start, width, height, SIM_LCD_WIDTH, SIM_LCD_HEIGHT, background ? UI_LCD_POSX : 0, background ? UI_LCD_POSY : 0); }
void sim_lcd_ex_update_rect(int x_start, int y_start, int width, int height) { if (lcd_ex_getpixel) { sdl_update_rect(lcd_surface, x_start, y_start, width, height, LCD_WIDTH, LCD_HEIGHT, lcd_ex_getpixel); sdl_gui_update(lcd_surface, x_start, y_start, width, height + LCD_SPLIT_LINES, SIM_LCD_WIDTH, SIM_LCD_HEIGHT, background ? UI_LCD_POSX : 0, background ? UI_LCD_POSY : 0); } }
void lcd_remote_update_rect(int x_start, int y_start, int width, int height) { if (remote_surface) { sdl_update_rect(remote_surface, x_start, y_start, width, height, LCD_REMOTE_WIDTH, LCD_REMOTE_HEIGHT, get_lcd_remote_pixel); sdl_gui_update(remote_surface, x_start, y_start, width, height, LCD_REMOTE_WIDTH, LCD_REMOTE_HEIGHT, background ? UI_REMOTE_POSX : 0, background ? UI_REMOTE_POSY : LCD_HEIGHT); } }
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, height + LCD_SPLIT_LINES, SIM_LCD_WIDTH, SIM_LCD_HEIGHT, background ? UI_LCD_POSX : 0, background? UI_LCD_POSY : 0); }