summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-09-27 12:13:56 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-09-27 12:13:56 +0300
commit11f0b4208721d4b59b5cbef87350955f5a05e50d (patch)
tree360977261dab9282ceb5a87bfcaa79fa2e53ed7c
parentefb9ca399a71d89e4c931df8e3310af7ecf0d53c (diff)
Cleanup
-rw-r--r--src/ui/window.c3
1 files changed, 2 insertions, 1 deletions
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) {
1652 1652
1653iWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) { 1653iWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) {
1654 start_PerfTimer(newPopup_Window); 1654 start_PerfTimer(newPopup_Window);
1655 iPerfTimer pt; init_PerfTimer(&pt);
1656 const iBool oldSw = forceSoftwareRender_App(); 1655 const iBool oldSw = forceSoftwareRender_App();
1657 /* On macOS, SDL seems to want to not use HiDPI with software rendering. */ 1656 /* On macOS, SDL seems to want to not use HiDPI with software rendering. */
1658#if !defined (iPlatformApple) 1657#if !defined (iPlatformApple)
@@ -1678,6 +1677,8 @@ iWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) {
1678 rootWidget->rect.pos = zero_I2(); 1677 rootWidget->rect.pos = zero_I2();
1679 setRoot_Widget(rootWidget, root); 1678 setRoot_Widget(rootWidget, root);
1680 setForceSoftwareRender_App(oldSw); 1679 setForceSoftwareRender_App(oldSw);
1680#if !defined (NDEBUG)
1681 stop_PerfTimer(newPopup_Window); 1681 stop_PerfTimer(newPopup_Window);
1682#endif
1682 return win; 1683 return win;
1683} 1684}