diff options
Diffstat (limited to 'uisimulator/sdl/lcd-sdl.h')
-rw-r--r-- | uisimulator/sdl/lcd-sdl.h | 13 |
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 @@ | |||
25 | #include "lcd.h" | 25 | #include "lcd.h" |
26 | #include "SDL.h" | 26 | #include "SDL.h" |
27 | 27 | ||
28 | #include "uisdl.h" | ||
29 | #ifdef UI_LCD_SPLIT | ||
30 | #define IFSPLIT(x,y) x,y | ||
31 | #else | ||
32 | #define IFSPLIT(x,y) | ||
33 | #endif | ||
34 | |||
28 | /* Default display zoom level */ | 35 | /* Default display zoom level */ |
29 | extern int display_zoom; | 36 | extern int display_zoom; |
30 | 37 | ||
@@ -32,11 +39,13 @@ void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width, | |||
32 | int height, int max_x, int max_y, | 39 | int height, int max_x, int max_y, |
33 | unsigned long (*getpixel)(int, int)); | 40 | unsigned long (*getpixel)(int, int)); |
34 | 41 | ||
35 | void sdl_gui_update(SDL_Surface *surface, int x_start, int y_start, int width, | 42 | void sdl_gui_update(SDL_Surface *surface, IFSPLIT(SDL_Surface *real_surface,) |
43 | int x_start, int y_start, int width, | ||
36 | int height, int max_x, int max_y, int ui_x, int ui_y); | 44 | int height, int max_x, int max_y, int ui_x, int ui_y); |
37 | 45 | ||
38 | void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end, | 46 | void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end, |
39 | int first, int steps); | 47 | IFSPLIT( SDL_Color *split_start ,) |
48 | IFSPLIT( SDL_Color *split_end ,) int first, int steps); | ||
40 | 49 | ||
41 | #endif /* #ifndef __LCDSDL_H__ */ | 50 | #endif /* #ifndef __LCDSDL_H__ */ |
42 | 51 | ||