summaryrefslogtreecommitdiff
path: root/src/PowderToy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PowderToy.cpp')
-rw-r--r--src/PowderToy.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/PowderToy.cpp b/src/PowderToy.cpp
index f3e6afb..cd647e8 100644
--- a/src/PowderToy.cpp
+++ b/src/PowderToy.cpp
@@ -74,7 +74,11 @@ SDL_Surface * SDLOpen()
SDL_WM_SetCaption("The Powder Toy", "Powder Toy");
//SDL_EnableKeyRepeat(SDL_DEFAULT_REPEAT_DELAY, SDL_DEFAULT_REPEAT_INTERVAL);
atexit(SDL_Quit);
+#ifndef OGLR
return SDL_SetVideoMode(XRES + BARSIZE, YRES + MENUSIZE, 32, SDL_SWSURFACE);
+#else
+ return SDL_SetVideoMode(XRES + BARSIZE, YRES + MENUSIZE, 32, SDL_OPENGL);
+#endif
}
/*int SDLPoll(SDL_Event * event)