1 #include "SDLWrap_Display.hpp"
5 Display::Display(int Width
, int Height
, int BPP
, Uint32 Flags
)
7 if ( (this->me
= SDL_SetVideoMode(Width
, Height
, BPP
, Flags
)) == NULL
)
8 throw SurfaceCreationError();
10 catch(SurfaceCreationError
)
12 ErrorHandler::OutputError(ErrorHandler::FATAL_CONSTRUCTOR_ERROR
, "Display::Display(int, int, int, Uint32) constructor threw a SurfaceCreationError!\n");
17 SDL_FreeSurface(this->me);
23 return (SDL_Flip(this->me
) == 0);