Path: blob/main/games/allacrost/files/patch-src_engine_video_video.cpp
16135 views
--- src/engine/video/video.cpp.orig 2010-05-16 23:38:27 UTC1+++ src/engine/video/video.cpp2@@ -470,7 +470,7 @@ bool VideoEngine::ApplySettings() {3SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);4SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);56- if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) {7+ if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == nullptr) {8// RGB values of 1 for each and 8 for depth seemed to be sufficient.9// 565 and 16 here because it works with them on this computer.10// NOTE from prophile: this ought to be changed to 555811@@ -483,7 +483,7 @@ bool VideoEngine::ApplySettings() {12SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0);13SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);1415- if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) {16+ if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == nullptr) {17IF_PRINT_WARNING(VIDEO_DEBUG) << "SDL_SetVideoMode() failed with error: " << SDL_GetError() << endl;1819_temp_fullscreen = _fullscreen;202122