GUI: hopefully better workaround to macOS #4
This commit is contained in:
parent
c24ad24a03
commit
a199c102ce
|
@ -2165,6 +2165,9 @@ bool FurnaceGUI::loop() {
|
||||||
if (firstFrame) {
|
if (firstFrame) {
|
||||||
firstFrame=false;
|
firstFrame=false;
|
||||||
if (patternOpen) nextWindow=GUI_WINDOW_PATTERN;
|
if (patternOpen) nextWindow=GUI_WINDOW_PATTERN;
|
||||||
|
#ifdef __APPLE__
|
||||||
|
SDL_RaiseWindow(sdlWin);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fileDialog->render(ImVec2(600.0f*dpiScale,400.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale))) {
|
if (fileDialog->render(ImVec2(600.0f*dpiScale,400.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale))) {
|
||||||
|
@ -2624,10 +2627,6 @@ bool FurnaceGUI::init() {
|
||||||
|
|
||||||
firstFrame=true;
|
firstFrame=true;
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
SDL_RaiseWindow(sdlWin);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue