Screenshot code cleanup, fix issue where the notification would be in a second fast screenshot

Fixes #22497
This commit is contained in:
Henrik Rydgård committed 2026-10-11 10:56:43 +02:00
1 parent c51daff839
commit 7572ac05ca
7 files changed
+9 -16

No files matched your search

-6
View File
@@ -24,8 +24,6 @@ static inline const char *DeNull(const char *ptr) {
return ptr ? ptr : "";
}
extern bool g_TakeScreenshot;
static const float g_atlasIconSize = 36.0f;
// Align only matters here for the ASCII-only flag.
@@ -107,10 +105,6 @@ static void RenderLeaderboardTracker(UIContext &dc, const Bounds &bounds, const
}
void OnScreenMessagesView::Draw(UIContext &dc) {
if (g_TakeScreenshot) {
return;
}
dc.Flush();
double now = time_now_d();