]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Video.cc
big batch of changes
[chaz/yoink] / src / Moof / Video.cc
index c49bb1e41124de28f0dfa1769ae4547c5d0f6377..9fdd47893652109704f589acc8aa0a5c6b6ad337 100644 (file)
 
 *******************************************************************************/
 
-#include <stdexcept>
-
 #include <SDL/SDL_image.h>
 
 #include "Dispatcher.hh"
+#include "Exception.hh"
 #include "Log.hh"
 #include "Settings.hh"
 #include "Video.hh"
@@ -129,7 +128,7 @@ void Video::setVideoMode(const long mode[3])
                        mAttribs.mode[1] = mode[1];
                        mAttribs.mode[2] = mode[2];
 
-#if defined(_WIN32) || defined (_WIN64) || defined(__WIN32__)
+#if defined(_WIN32) || defined(__WIN32__)
                        // on win32, creating a new context via SDL_SetVideoMode will wipe
                        // out the GL state, so we gotta notify everyone to reload their
                        // state after the change
@@ -137,7 +136,7 @@ void Video::setVideoMode(const long mode[3])
                        logInfo("video context recreated");
 #endif
                }
-               else throw Exception(Exception::SDL_ERROR);
+               else throw Exception(ErrorCode::SDL_VIDEOMODE);
        }
 }
 
This page took 0.017943 seconds and 4 git commands to generate.