diff options
| author | Rafaël Carré <rafael.carre@gmail.com> | 2008-12-04 23:24:45 +0000 |
|---|---|---|
| committer | Rafaël Carré <rafael.carre@gmail.com> | 2008-12-04 23:24:45 +0000 |
| commit | bba06cfd551c7d34308ef7ea52455f07a5e2cfee (patch) | |
| tree | 47a70eb6c2e63c71345dcf700bc0f88d4c33ac09 /uisimulator/sdl/lcd-sdl.h | |
| parent | e3a970f4eb3068055f806a3194883eb157f8b1ed (diff) | |
| download | rockbox-bba06cfd551c7d34308ef7ea52455f07a5e2cfee.zip rockbox-bba06cfd551c7d34308ef7ea52455f07a5e2cfee.tar.gz rockbox-bba06cfd551c7d34308ef7ea52455f07a5e2cfee.tar.bz2 rockbox-bba06cfd551c7d34308ef7ea52455f07a5e2cfee.tar.xz | |
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
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 9ffa524..b177eb1 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__ */ |