From 11f0b4208721d4b59b5cbef87350955f5a05e50d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= jaakko.keranen@iki.fi
Date: Mon, 27 Sep 2021 12:13:56 +0300
Subject: [PATCH 1/1] Cleanup
src/ui/window.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/ui/window.c b/src/ui/window.c
index 54422ef2..d66015a8 100644
--- a/src/ui/window.c
+++ b/src/ui/window.c
@@ -1652,7 +1652,6 @@ int snap_MainWindow(const iMainWindow *d) {
iWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) {
start_PerfTimer(newPopup_Window);
const iBool oldSw = forceSoftwareRender_App();
/* On macOS, SDL seems to want to not use HiDPI with software rendering. */
#if !defined (iPlatformApple)
@@ -1678,6 +1677,8 @@ iWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) {
rootWidget->rect.pos = zero_I2();
setRoot_Widget(rootWidget, root);
setForceSoftwareRender_App(oldSw);
+#if !defined (NDEBUG)
stop_PerfTimer(newPopup_Window);
+#endif
return win;
}
--
2.25.1
text/plain
This content has been proxied by September (ba2dc).