X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fsdl%2FInitScreen.h;h=dd5e2456fd0adde7e2aae71081f6f19d0b7acb24;hb=3a86cc937e9fce68384efc08edb6d6ba101d12eb;hp=54e76804c9af2fc53514a1c97b455712fffccc33;hpb=5ceb9e51fd6768946c4a2d72aac13fa6bc78fa88;p=l2e.git diff --git a/src/sdl/InitScreen.h b/src/sdl/InitScreen.h index 54e7680..dd5e245 100644 --- a/src/sdl/InitScreen.h +++ b/src/sdl/InitScreen.h @@ -15,7 +15,7 @@ namespace sdl { class InitScreen { public: - InitScreen(int width, int height, int bpp = 32, Sint32 flags = SDL_HWSURFACE | SDL_DOUBLEBUF); + InitScreen(int width, int height, int bpp = 32, Sint32 flags = SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_RESIZABLE); virtual ~InitScreen(void); private: InitScreen(const InitScreen &); @@ -25,10 +25,13 @@ public: SDL_Surface *Screen(void) { return screen; }; const SDL_Surface *Screen(void) const { return screen; }; - void Flip(void) { SDL_Flip(screen); }; + void Flip(void); + SDL_Surface *Resize(int width, int height); private: SDL_Surface *screen; + int bpp; + Sint32 flags; };