Date: Thu, 24 Aug 2017 16:28:12 +0000 (UTC) From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r448695 - head/games/valyriatear/files Message-ID: <201708241628.v7OGSCI7069741@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Aug 24 16:28:11 2017 New Revision: 448695 URL: https://svnweb.freebsd.org/changeset/ports/448695 Log: - Fix build with gcc7 Added: head/games/valyriatear/files/patch-src_engine_video_video.cpp (contents, props changed) Added: head/games/valyriatear/files/patch-src_engine_video_video.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/valyriatear/files/patch-src_engine_video_video.cpp Thu Aug 24 16:28:11 2017 (r448695) @@ -0,0 +1,20 @@ +--- src/engine/video/video.cpp.orig 2016-04-25 20:52:18 UTC ++++ src/engine/video/video.cpp +@@ -434,7 +434,7 @@ bool VideoEngine::ApplySettings() + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4); + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + +- if(SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) { ++ if(SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == NULL) { + // RGB values of 1 for each and 8 for depth seemed to be sufficient. + // 565 and 16 here because it works with them on this computer. + // NOTE from prophile: this ought to be changed to 5558 +@@ -447,7 +447,7 @@ bool VideoEngine::ApplySettings() + SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0); + SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1); + +- if(SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) { ++ if(SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == NULL) { + IF_PRINT_WARNING(VIDEO_DEBUG) << "SDL_SetVideoMode() failed with error: " << SDL_GetError() << std::endl; + + _temp_fullscreen = _fullscreen;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708241628.v7OGSCI7069741>