Skip to content

Commit

Permalink
Some ImGui tweaks for the game window (#2183)
Browse files Browse the repository at this point in the history
* Remove window border
* Remove window rounding
* Set background color to black
  • Loading branch information
ngoquang2708 authored Jan 19, 2025
1 parent 746f2e0 commit ec0dfb3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video_core/renderer_vulkan/vk_presenter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -825,6 +825,9 @@ void Presenter::Present(Frame* frame, bool is_reusing_frame) {

{ // Draw the game
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2{0.0f});
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f);
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.0f, 0.0f, 0.0f, 1.0f));
ImGui::SetNextWindowDockID(dockId, ImGuiCond_Once);
ImGui::Begin("Display##game_display", nullptr, ImGuiWindowFlags_NoNav);

Expand All @@ -840,7 +843,8 @@ void Presenter::Present(Frame* frame, bool is_reusing_frame) {
static_cast<float>(imgRect.extent.height),
});
ImGui::End();
ImGui::PopStyleVar();
ImGui::PopStyleVar(3);
ImGui::PopStyleColor();
}
ImGui::Core::Render(cmdbuf, swapchain_image_view, swapchain.GetExtent());

Expand Down

0 comments on commit ec0dfb3

Please sign in to comment.