summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2017-08-24 16:28:11 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2017-08-24 16:28:11 +0000
commitc1c30faddd02ebdf212a3dfb7bfbdaaf781457d2 (patch)
treea449caddf17ad41dfa5c605dce473428c25ebb98
parentAdd pkg-plist target (diff)
- Fix build with gcc7
-rw-r--r--games/valyriatear/files/patch-src_engine_video_video.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/games/valyriatear/files/patch-src_engine_video_video.cpp b/games/valyriatear/files/patch-src_engine_video_video.cpp
new file mode 100644
index 000000000000..2c532046d945
--- /dev/null
+++ b/games/valyriatear/files/patch-src_engine_video_video.cpp
@@ -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;