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
diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h
index 25e3104..989ca36 100644
--- a/uisimulator/sdl/uisdl.h
+++ b/uisimulator/sdl/uisdl.h
@@ -20,10 +20,8 @@
 #ifndef __UISDL_H__
 #define __UISDL_H__
 
-#include <SDL.h>
-#include <SDL_mutex.h>
-#include <SDL_thread.h>
-#include "lcd-sdl.h"
+#include <stdbool.h>
+#include "SDL.h"
 
 /* colour definitions are R, G, B */
 
@@ -93,7 +91,7 @@
 #define UI_REMOTE_WIDTH             128
 #define UI_REMOTE_HEIGHT            64
 
-#elif defined(IRIVER_H300_SERIES)
+#elif defined(IRIVER_H300)
 #define UI_TITLE                    "iriver H300"
 #define UI_WIDTH                    288 // width of GUI window
 #define UI_HEIGHT                   581 // height of GUI window
@@ -176,6 +174,7 @@
 
 extern SDL_Surface *gui_surface;
 extern bool background;  /* True if the background image is enabled */
+extern int display_zoom; 
 
 #endif // #ifndef __UISDL_H__