*******************************************************************************/
-#include <stdexcept>
-
#include <SDL/SDL_image.h>
#include "Dispatcher.hh"
+#include "Exception.hh"
#include "Log.hh"
#include "Settings.hh"
#include "Video.hh"
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
logInfo("video context recreated");
#endif
}
- else throw Exception(Exception::SDL_ERROR);
+ else throw Exception(ErrorCode::SDL_VIDEOMODE);
}
}