Rework the internal screenshot API, fix bug causing screenshotting to get stuck

This commit is contained in:
Henrik Rydgård
2026-02-13 12:31:20 +01:00
parent f2459aa0f4
commit 386fc442a6
13 changed files with 246 additions and 211 deletions
+2 -3
View File
@@ -30,6 +30,7 @@
#include "Core/ConfigValues.h"
#include "Core/FileSystems/MetaFileSystem.h"
#include "Core/KeyMap.h"
#include "Core/Screenshot.h"
#include "Windows/MainWindowMenu.h"
#include "Windows/MainWindow.h"
#include "Windows/W32Util/DialogManager.h"
@@ -49,8 +50,6 @@
#include "ext/rcheevos/include/rc_client_raintegration.h"
#endif
extern bool g_TakeScreenshot;
namespace MainWindow {
extern bool noFocusPause;
std::vector<HMENU> g_topLevelMenus;
@@ -955,7 +954,7 @@ namespace MainWindow {
break;
case ID_DEBUG_TAKESCREENSHOT:
g_TakeScreenshot = true;
TakeUserScreenshot();
break;
case ID_DEBUG_RESTARTGRAPHICS: