Skip to content

Commit

Permalink
Attempt to fix startup crash on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Jun 13, 2017
1 parent b39e125 commit f8f1ee7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/video.cpp
Expand Up @@ -133,6 +133,10 @@ bool CVideo::non_interactive() const

SDL_Rect screen_area()
{
if(!frameBuffer) {
CVideo::get_singleton().update_framebuffer();
}

return {0, 0, frameBuffer->w, frameBuffer->h};
}

Expand Down

0 comments on commit f8f1ee7

Please sign in to comment.