Skip to content

Commit

Permalink
Add fullscreen support to SDL2
Browse files Browse the repository at this point in the history
  • Loading branch information
aginor committed Sep 25, 2015
1 parent 85dad75 commit f890564
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sdl/window.cpp
Expand Up @@ -67,12 +67,13 @@ twindow::~twindow()

void twindow::set_size(const int w, const int h)
{
SDL_SetWindowFullscreen(window_, 0);
SDL_SetWindowSize(window_, w, h);
}

void twindow::full_screen()
{
/** @todo Implement. */
SDL_SetWindowFullscreen(window_, SDL_WINDOW_FULLSCREEN_DESKTOP);
}

void twindow::fill(Uint8 r, Uint8 g, Uint8 b, Uint8 a)
Expand Down

0 comments on commit f890564

Please sign in to comment.