From: Brad A. <br...@us...> - 2013-02-21 21:39:42
|
gemrb: Infinity Engine emulator The branch master has been updated via 9ebd28c13c4cd354e3f7d1f6da4f406c844bbfe5 (commit) Summary of changes: gemrb/plugins/SDLVideo/SDL20Video.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) from c4c47ada57dafc13767697d7e05c427afa3bec2d (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- http://gemrb.git.sourceforge.net/git/gitweb.cgi?p=gemrb/gemrb;a=commitdiff;h=9ebd28c13c4cd354e3f7d1f6da4f406c844bbfe5 commit 9ebd28c13c4cd354e3f7d1f6da4f406c844bbfe5 Author: Brad Allred <bra...@me...> Date: Thu Feb 21 14:39:29 2013 -0700 SDL2: ensure window is created sucessfully diff --git a/gemrb/plugins/SDLVideo/SDL20Video.cpp b/gemrb/plugins/SDLVideo/SDL20Video.cpp index 0a59de7..63b8409 100644 --- a/gemrb/plugins/SDLVideo/SDL20Video.cpp +++ b/gemrb/plugins/SDLVideo/SDL20Video.cpp @@ -75,6 +75,11 @@ int SDL20VideoDriver::CreateDisplay(int w, int h, int bpp, bool fs, const char* winFlags |= SDL_WINDOW_BORDERLESS; } window = SDL_CreateWindow(title, SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, width, height, winFlags); + if (window == NULL) { + Log(ERROR, "SDL 2 Driver", "couldnt create window:%s", SDL_GetError()); + return GEM_ERROR; + } + renderer = SDL_CreateRenderer(window, -1, 0); if (renderer == NULL) { ----------------------------------------------------------------------- This is an automated email from the git hooks/post-receive script. -- gemrb: Infinity Engine emulator |