diff options
author | David Robillard <d@drobilla.net> | 2020-12-01 19:18:23 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-01 19:18:23 +0100 |
commit | 9cb91cde90fc7e54e611805170058efebe32b5a7 (patch) | |
tree | a0fb0574e673cba0a06e76395cc53b9218f3c35a /src/mac.m | |
parent | 8f5d0ac919a95958636723501c6ea5f1d4cc0829 (diff) | |
download | pugl-9cb91cde90fc7e54e611805170058efebe32b5a7.tar.gz pugl-9cb91cde90fc7e54e611805170058efebe32b5a7.tar.bz2 pugl-9cb91cde90fc7e54e611805170058efebe32b5a7.zip |
Make puglShow() realize automatically on Windows and MacOS
Diffstat (limited to 'src/mac.m')
-rw-r--r-- | src/mac.m | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1004,6 +1004,13 @@ puglRealize(PuglView* view) PuglStatus puglShow(PuglView* view) { + if (!view->impl->wrapperView) { + const PuglStatus st = puglRealize(view); + if (st) { + return st; + } + } + if (![view->impl->window isVisible]) { [view->impl->window setIsVisible:YES]; [view->impl->drawView setNeedsDisplay: YES]; |