summaryrefslogtreecommitdiff
path: root/src/PowderToySDL.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2013-02-15 04:31:31 (GMT)
committer jacob1 <jfu614@gmail.com>2013-02-15 04:31:31 (GMT)
commit01cd146ee910fb9e62859583842c9842b539565b (patch)
treed87346317f1a7c7110ffa993b0680a0d393d1198 /src/PowderToySDL.cpp
parent5807602cc1ec326f3ca33f3130d35b22082378ec (diff)
downloadpowder-01cd146ee910fb9e62859583842c9842b539565b.zip
powder-01cd146ee910fb9e62859583842c9842b539565b.tar.gz
fix mac compiling, fix renderer, fix other minor compiling issues
Diffstat (limited to 'src/PowderToySDL.cpp')
-rw-r--r--src/PowderToySDL.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp
index 4b50a24..48a77b2 100644
--- a/src/PowderToySDL.cpp
+++ b/src/PowderToySDL.cpp
@@ -20,6 +20,9 @@
#ifndef WIN
#include <unistd.h>
#endif
+#ifdef MACOSX
+#include <ApplicationServices/ApplicationServices.h>
+#endif
#include "Format.h"
#include "Style.h"
@@ -540,6 +543,11 @@ void EngineProcess()
#endif
}
+int GetModifiers()
+{
+ return SDL_GetModState();
+}
+
int main(int argc, char * argv[])
{
currentWidth = XRES+BARSIZE;