summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/lcd-sdl.h
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-02-09 21:49:28 +0000
committerDan Everton <dan@iocaine.org>2006-02-09 21:49:28 +0000
commitb585e87b454917f0424541a34c0b41b1fe83f694 (patch)
treef93652b42b4791ce4f8b64421a1a063c58e511b0 /uisimulator/sdl/lcd-sdl.h
parentf42f42e5543f18d11142bb98e3c8677a04b99318 (diff)
downloadrockbox-b585e87b454917f0424541a34c0b41b1fe83f694.tar.gz
rockbox-b585e87b454917f0424541a34c0b41b1fe83f694.zip
Refactor SDL sim source so drawing routines are written once. Split bitmap, remote, and charcell LCD in to their own files. Add zoom support, use --zoom factor (e.g. --zoom 2 for two times zoom) to use it.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8645 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/lcd-sdl.h')
-rw-r--r--uisimulator/sdl/lcd-sdl.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/uisimulator/sdl/lcd-sdl.h b/uisimulator/sdl/lcd-sdl.h
index 312ae0d01f..d371639a64 100644
--- a/uisimulator/sdl/lcd-sdl.h
+++ b/uisimulator/sdl/lcd-sdl.h
@@ -20,20 +20,18 @@
#ifndef __LCDSDL_H__
#define __LCDSDL_H__
-#include "uisdl.h"
#include "lcd.h"
+#include "SDL.h"
-extern SDL_Surface* lcd_surface;
-#if LCD_DEPTH <= 8
-extern SDL_Color lcd_palette[(1<<LCD_DEPTH)];
-#endif
+/* Default display zoom level */
+extern int display_zoom;
-#ifdef HAVE_REMOTE_LCD
-extern SDL_Surface* remote_surface;
-extern SDL_Color remote_palette[(1<<LCD_REMOTE_DEPTH)];
-#endif
+void sdl_update_rect(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,
+ Uint32 (*getpixel)(int, int));
-void simlcdinit(void);
+void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end,
+ int steps);
#endif // #ifndef __LCDSDL_H__