#include "Dispatch.hh"
#include "Engine.hh"
-#include "Exception.hh"
+#include "Error.hh"
#include "Image.hh"
#include "Log.hh"
#include "Settings.hh"
void Video::init(const Attributes& attribs)
{
- // make sure the engine is initialized before setting up the video
- Engine::getInstance();
-
mContext = 0;
mFlags = 0;
mAttribs = attribs;
logInfo("video context recreated");
#endif
}
- else throw Exception(ErrorCode::SDL_VIDEOMODE);
+ else throw Error(Error::SDL_VIDEOMODE);
}
}