diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-20 18:21:10 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-20 18:21:10 (GMT) |
| commit | 75a9460c835f4ebea501a89d23e0c5f46da985cc (patch) | |
| tree | 4a7d52842b508e8f4097c6becfe117639fcc6947 /src/PowderToy.cpp | |
| parent | 0bab640fe48a3b13eb01101977d0c5cb8fef199a (diff) | |
| download | powder-75a9460c835f4ebea501a89d23e0c5f46da985cc.zip powder-75a9460c835f4ebea501a89d23e0c5f46da985cc.tar.gz | |
OpenGL rendering
Diffstat (limited to 'src/PowderToy.cpp')
| -rw-r--r-- | src/PowderToy.cpp | 4 |
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) |
