summaryrefslogtreecommitdiff
path: root/uisimulator/common
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-03 15:19:58 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-03 15:19:58 +0000
commitfc72c5375813a6bbc0845aca984147a944a7e62a (patch)
tree347a6a9297f9f4d3131c8268f450d6ba227d0246 /uisimulator/common
parent347992e9d93ed0f91cde7e2d580cfdc8d5eb95f4 (diff)
Patch #1417462 by Dan Everton - Improved SDL simulator
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8546 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/io.c4
-rw-r--r--uisimulator/common/lcd-common.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 4943bc04e2..e18d8e6a57 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -71,7 +71,11 @@ typedef struct mydir MYDIR;
#if 1 /* maybe this needs disabling for MSVC... */
static unsigned int rockbox2sim(int opt)
{
+#ifdef WIN32
+ int newopt = O_BINARY;
+#else
int newopt = 0;
+#endif
if(opt & 1)
newopt |= O_WRONLY;
if(opt & 2)
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c
index 119c440318..a28e619706 100644
--- a/uisimulator/common/lcd-common.c
+++ b/uisimulator/common/lcd-common.c
@@ -24,7 +24,9 @@
#include "lcd.h"
-#if defined(WIN32) && !defined(SDL)
+#if defined(SDL)
+#include "lcd-sdl.h"
+#elif defined(WIN32)
#include "lcd-win32.h"
#else
#include "lcd-x11.h"