[Scummvm-git-logs] scummvm master -> 5c5b456bfddea7cb1beeab61b4b52ebedd5d2d62
sev-
noreply at scummvm.org
Sat Apr 29 23:05:54 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
5c5b456bfd AGS: Fix int-bool comparison.
Commit: 5c5b456bfddea7cb1beeab61b4b52ebedd5d2d62
https://github.com/scummvm/scummvm/commit/5c5b456bfddea7cb1beeab61b4b52ebedd5d2d62
Author: elasota (ejlasota at gmail.com)
Date: 2023-04-30T01:05:50+02:00
Commit Message:
AGS: Fix int-bool comparison.
Changed paths:
engines/ags/engine/ac/draw.cpp
diff --git a/engines/ags/engine/ac/draw.cpp b/engines/ags/engine/ac/draw.cpp
index dd12b18dd2e..60b1ac7ca23 100644
--- a/engines/ags/engine/ac/draw.cpp
+++ b/engines/ags/engine/ac/draw.cpp
@@ -692,7 +692,7 @@ void render_to_screen() {
// Try set new vsync value, and remember the actual result
bool new_vsync = _G(gfxDriver)->SetVsync(_GP(scsystem).vsync > 0);
- if (new_vsync != _GP(scsystem).vsync)
+ if (new_vsync != (_GP(scsystem).vsync > 0))
System_SetVSyncInternal(new_vsync);
bool succeeded = false;
More information about the Scummvm-git-logs
mailing list