Fix #17816: Option to pause Steam Overlay not greyed out when using OpenGL

This commit is contained in:
Henry Cheng 2022-08-31 16:08:36 -05:00 committed by GitHub
parent 7d881454de
commit 0c76872869
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -43,6 +43,7 @@
- Fix: [#17784] Colour preset RNG is biased (original bug).
- Fix: [#17788] Guests could leave queue if another guest rejoins it from the entrance building.
- Fix: [#17834] Finance window becomes blank after 4096 years.
- Fix: [#17816] Option to pause game when Steam Overlay is active is not greyed out when using the OpenGL renderer.
- Fix: [#17905] The chain button in the map window is enabled for rectangular maps when (re)opened.
- Fix: [#17931] The in-game command count_objects crashes the game.

View File

@ -877,8 +877,8 @@ private:
disabled_widgets &= ~(1ULL << WIDX_RESOLUTION_LABEL);
}
// Disable Steam Overlay checkbox when using software rendering.
if (gConfigGeneral.drawing_engine == DrawingEngine::Software)
// Disable Steam Overlay checkbox when using software or OpenGL rendering.
if (gConfigGeneral.drawing_engine == DrawingEngine::Software || gConfigGeneral.drawing_engine == DrawingEngine::OpenGL)
{
disabled_widgets |= (1ULL << WIDX_STEAM_OVERLAY_PAUSE);
}