Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/games/allacrost/files/patch-src_engine_video_video.cpp
16135 views
1
--- src/engine/video/video.cpp.orig 2010-05-16 23:38:27 UTC
2
+++ src/engine/video/video.cpp
3
@@ -470,7 +470,7 @@ bool VideoEngine::ApplySettings() {
4
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 4);
5
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
6
7
- if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) {
8
+ if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == nullptr) {
9
// RGB values of 1 for each and 8 for depth seemed to be sufficient.
10
// 565 and 16 here because it works with them on this computer.
11
// NOTE from prophile: this ought to be changed to 5558
12
@@ -483,7 +483,7 @@ bool VideoEngine::ApplySettings() {
13
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 0);
14
SDL_GL_SetAttribute(SDL_GL_SWAP_CONTROL, 1);
15
16
- if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == false) {
17
+ if (SDL_SetVideoMode(_temp_width, _temp_height, 0, flags) == nullptr) {
18
IF_PRINT_WARNING(VIDEO_DEBUG) << "SDL_SetVideoMode() failed with error: " << SDL_GetError() << endl;
19
20
_temp_fullscreen = _fullscreen;
21
22