1
0
mirror of synced 2024-11-29 09:54:30 +01:00

ui: Moved welcome screen close button further to the left

This commit is contained in:
WerWolv 2022-08-16 11:49:56 +02:00
parent 0529155faa
commit 0c3fc6f858

View File

@ -325,7 +325,7 @@ namespace hex::plugin::builtin {
ImGui::EndTable(); ImGui::EndTable();
} }
ImGui::SetCursorPos(ImVec2(ImGui::GetWindowSize().x - ImGui::CalcTextSize("X").x * 2, 0)); ImGui::SetCursorPos(ImVec2(ImGui::GetContentRegionAvail().x, 0));
if (ImGui::Hyperlink("X")) { if (ImGui::Hyperlink("X")) {
auto provider = ImHexApi::Provider::createProvider("hex.builtin.provider.null"); auto provider = ImHexApi::Provider::createProvider("hex.builtin.provider.null");
if (provider != nullptr) if (provider != nullptr)