adopt code to new imgui and new sdl

This commit is contained in:
2024-01-17 22:39:51 +01:00
parent ca6909b64a
commit a15a9af2b3
3 changed files with 6 additions and 4 deletions

View File

@ -445,7 +445,8 @@ void SendImagePopup::render(float time_delta) {
ImGui::Unindent();
}
if (ImGui::Button("X cancel", {ImGui::GetWindowContentRegionWidth()/2.f, TEXT_BASE_HEIGHT*2})) {
//if (ImGui::Button("X cancel", {ImGui::GetWindowContentRegionWidth()/2.f, TEXT_BASE_HEIGHT*2})) {
if (ImGui::Button("X cancel", {ImGui::GetContentRegionAvail().x/2.f, TEXT_BASE_HEIGHT*2})) {
_on_cancel();
ImGui::CloseCurrentPopup();
reset();