1
0
mirror of synced 2025-02-10 15:52:59 +01:00

fix: Banners not being part of the main viewport

This commit is contained in:
WerWolv 2025-02-02 21:06:18 +01:00
parent be40fd9563
commit f345edb252

View File

@ -643,6 +643,7 @@ namespace hex {
auto &style = ImGui::GetStyle();
ImGui::SetNextWindowPos(ImVec2(windowPos.x + 1_scaled, startY));
ImGui::SetNextWindowSize(ImVec2(ImHexApi::System::getMainWindowSize().x - 2_scaled, height));
ImGui::SetNextWindowViewport(viewport->ID);
ImGui::PushStyleColor(ImGuiCol_WindowBg, banner->getColor().Value);
auto prevShadowOffset = style.WindowShadowOffsetDist;
auto prevShadowAngle = style.WindowShadowOffsetAngle;