diff --git a/src/NazaraEditor/Editor/UI/MainWindow.cpp b/src/NazaraEditor/Editor/UI/MainWindow.cpp index a6ec956..c7eebff 100644 --- a/src/NazaraEditor/Editor/UI/MainWindow.cpp +++ b/src/NazaraEditor/Editor/UI/MainWindow.cpp @@ -21,7 +21,8 @@ namespace NzEditor if (ImGui::Begin("MainWindow")) { auto pos = ImGui::GetCursorPos(); - ImGui::Image(GetApplication()->GetEngineTexture()); + auto size = ImGui::GetContentRegionAvail(); + ImGui::Image(GetApplication()->GetEngineTexture(), Nz::Vector2f{ size.x, size.y }); ImGui::SetCursorPos(pos); // everything else will be drawn on top of the texture auto cam = GetApplication()->GetMainCamera();