From bba06cfd551c7d34308ef7ea52455f07a5e2cfee Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Thu, 4 Dec 2008 23:24:45 +0000 Subject: Sansa Clip Simulator: emulate the real screen at the price of some CPU (FS#9521) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19347 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/lcd-sdl.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'uisimulator/sdl/lcd-sdl.h') diff --git a/uisimulator/sdl/lcd-sdl.h b/uisimulator/sdl/lcd-sdl.h index 9ffa5246cf..b177eb14c9 100644 --- a/uisimulator/sdl/lcd-sdl.h +++ b/uisimulator/sdl/lcd-sdl.h @@ -25,6 +25,13 @@ #include "lcd.h" #include "SDL.h" +#include "uisdl.h" +#ifdef UI_LCD_SPLIT +#define IFSPLIT(x,y) x,y +#else +#define IFSPLIT(x,y) +#endif + /* Default display zoom level */ extern int display_zoom; @@ -32,11 +39,13 @@ void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width, int height, int max_x, int max_y, unsigned long (*getpixel)(int, int)); -void sdl_gui_update(SDL_Surface *surface, int x_start, int y_start, int width, +void sdl_gui_update(SDL_Surface *surface, IFSPLIT(SDL_Surface *real_surface,) + int x_start, int y_start, int width, int height, int max_x, int max_y, int ui_x, int ui_y); void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end, - int first, int steps); + IFSPLIT( SDL_Color *split_start ,) + IFSPLIT( SDL_Color *split_end ,) int first, int steps); #endif /* #ifndef __LCDSDL_H__ */ -- cgit v1.2.3