summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/lcd-sdl.h
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2009-02-09 00:32:59 +0000
committerJens Arnold <amiconn@rockbox.org>2009-02-09 00:32:59 +0000
commit0d935ce75e1408dfd9832ae7dbb7d84df50a645d (patch)
tree9ddcc5d21dcd0e576d0fa824e74c58755fa9d1a0 /uisimulator/sdl/lcd-sdl.h
parent94537f954e67d44fdd9703c062c4ee53599e0e74 (diff)
downloadrockbox-0d935ce75e1408dfd9832ae7dbb7d84df50a645d.tar.gz
rockbox-0d935ce75e1408dfd9832ae7dbb7d84df50a645d.zip
Put the display colours for monochrome and greyscale targets into the target config files, and use them both for the simulator UI and screendumps. The Clip now shows the split display properly in screendumps and simulator. A side effect is that screendumps of ordinary monochrome targets are now 4-bit BMP files (saves an alternate code path, and might be more compatible with some gfx programs). * Simplify the simulation of split display, and also simplify greylib simulation. The simulator now always calculates 129 shades (2*128 for a Clip sim), and just uses 2 (or 4) of those for native display simulation. * Centralised the simulator LCD dimension definition.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19950 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/lcd-sdl.h')
-rw-r--r--uisimulator/sdl/lcd-sdl.h13
1 files changed, 2 insertions, 11 deletions
diff --git a/uisimulator/sdl/lcd-sdl.h b/uisimulator/sdl/lcd-sdl.h
index b177eb14c9..9ffa5246cf 100644
--- a/uisimulator/sdl/lcd-sdl.h
+++ b/uisimulator/sdl/lcd-sdl.h
@@ -25,13 +25,6 @@
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
35/* Default display zoom level */ 28/* Default display zoom level */
36extern int display_zoom; 29extern int display_zoom;
37 30
@@ -39,13 +32,11 @@ void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width,
39 int height, int max_x, int max_y, 32 int height, int max_x, int max_y,
40 unsigned long (*getpixel)(int, int)); 33 unsigned long (*getpixel)(int, int));
41 34
42void sdl_gui_update(SDL_Surface *surface, IFSPLIT(SDL_Surface *real_surface,) 35void sdl_gui_update(SDL_Surface *surface, int x_start, int y_start, int width,
43 int x_start, int y_start, int width,
44 int height, int max_x, int max_y, int ui_x, int ui_y); 36 int height, int max_x, int max_y, int ui_x, int ui_y);
45 37
46void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end, 38void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end,
47 IFSPLIT( SDL_Color *split_start ,) 39 int first, int steps);
48 IFSPLIT( SDL_Color *split_end ,) int first, int steps);
49 40
50#endif /* #ifndef __LCDSDL_H__ */ 41#endif /* #ifndef __LCDSDL_H__ */
51 42