Skip to content

Commit bdc3838

Browse files
committed
Some ImGui tweaks for the game window
* Remove window border * Remove window rounding * Set background color to black
1 parent b4cb5a1 commit bdc3838

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/video_core/renderer_vulkan/vk_presenter.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,6 +825,9 @@ void Presenter::Present(Frame* frame, bool is_reusing_frame) {
825825

826826
{ // Draw the game
827827
ImGui::PushStyleVar(ImGuiStyleVar_WindowPadding, ImVec2{0.0f});
828+
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 0.0f);
829+
ImGui::PushStyleVar(ImGuiStyleVar_WindowBorderSize, 0.0f);
830+
ImGui::PushStyleColor(ImGuiCol_WindowBg, ImVec4(0.0f, 0.0f, 0.0f, 1.0f));
828831
ImGui::SetNextWindowDockID(dockId, ImGuiCond_Once);
829832
ImGui::Begin("Display##game_display", nullptr, ImGuiWindowFlags_NoNav);
830833

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

0 commit comments

Comments
 (0)