diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/window.c | 3 |
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 | ||
1653 | iWindow *newPopup_Window(iInt2 screenPos, iWidget *rootWidget) { | 1653 | iWindow *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 | } |