summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/lcd-sdl.h
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/lcd-sdl.h')
-rw-r--r--uisimulator/sdl/lcd-sdl.h13
1 files changed, 11 insertions, 2 deletions
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__ */