From 0d935ce75e1408dfd9832ae7dbb7d84df50a645d Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Mon, 9 Feb 2009 00:32:59 +0000 Subject: 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 --- uisimulator/sdl/lcd-sdl.h | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'uisimulator/sdl/lcd-sdl.h') 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 @@ #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; @@ -39,13 +32,11 @@ 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, IFSPLIT(SDL_Surface *real_surface,) - int x_start, int y_start, int width, +void sdl_gui_update(SDL_Surface *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, - IFSPLIT( SDL_Color *split_start ,) - IFSPLIT( SDL_Color *split_end ,) int first, int steps); + int first, int steps); #endif /* #ifndef __LCDSDL_H__ */ -- cgit v1.2.3