summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/uisdl.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/uisdl.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/uisdl.h')
-rw-r--r--uisimulator/sdl/uisdl.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 25e31040cd..989ca364d1 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -20,10 +20,8 @@
20#ifndef __UISDL_H__ 20#ifndef __UISDL_H__
21#define __UISDL_H__ 21#define __UISDL_H__
22 22
23#include <SDL.h> 23#include <stdbool.h>
24#include <SDL_mutex.h> 24#include "SDL.h"
25#include <SDL_thread.h>
26#include "lcd-sdl.h"
27 25
28/* colour definitions are R, G, B */ 26/* colour definitions are R, G, B */
29 27
@@ -93,7 +91,7 @@
93#define UI_REMOTE_WIDTH 128 91#define UI_REMOTE_WIDTH 128
94#define UI_REMOTE_HEIGHT 64 92#define UI_REMOTE_HEIGHT 64
95 93
96#elif defined(IRIVER_H300_SERIES) 94#elif defined(IRIVER_H300)
97#define UI_TITLE "iriver H300" 95#define UI_TITLE "iriver H300"
98#define UI_WIDTH 288 // width of GUI window 96#define UI_WIDTH 288 // width of GUI window
99#define UI_HEIGHT 581 // height of GUI window 97#define UI_HEIGHT 581 // height of GUI window
@@ -176,6 +174,7 @@
176 174
177extern SDL_Surface *gui_surface; 175extern SDL_Surface *gui_surface;
178extern bool background; /* True if the background image is enabled */ 176extern bool background; /* True if the background image is enabled */
177extern int display_zoom;
179 178
180#endif // #ifndef __UISDL_H__ 179#endif // #ifndef __UISDL_H__
181 180