X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fyoink;a=blobdiff_plain;f=src%2FMoof%2FVideo.cc;h=9fdd47893652109704f589acc8aa0a5c6b6ad337;hp=c49bb1e41124de28f0dfa1769ae4547c5d0f6377;hb=8a1acac01b444dccf8b57cedf08392ada2e473c1;hpb=bffc879fc8ee8167bb123310d39fad4e2f426ffd diff --git a/src/Moof/Video.cc b/src/Moof/Video.cc index c49bb1e..9fdd478 100644 --- a/src/Moof/Video.cc +++ b/src/Moof/Video.cc @@ -26,11 +26,10 @@ *******************************************************************************/ -#include - #include #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); } }