Skip to content

Commit

Permalink
Fix main window in multi viewport mode
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Dec 8, 2024
1 parent 2d8c8e7 commit 6e22d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platforms/desktop-shared/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ static void main_window(void)
int window_y = ((h - (h_corrected * scale_multiplier)) / 2) + (config_emulator.show_menu ? main_menu_height : 0);

ImGui::SetNextWindowSize(ImVec2((float)main_window_width, (float)main_window_height));
ImGui::SetNextWindowPos(ImVec2((float)window_x, (float)window_y));
ImGui::SetNextWindowPos(ImGui::GetMainViewport()->Pos + ImVec2((float)window_x, (float)window_y));
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f);

flags |= ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoTitleBar | ImGuiWindowFlags_NoCollapse | ImGuiWindowFlags_NoNav | ImGuiWindowFlags_NoBringToFrontOnFocus;
Expand Down

0 comments on commit 6e22d74

Please sign in to comment.