Skip to content

Commit 8cd9dba

Browse files
committed
favor getcontentregionavail in flocking demo
1 parent 0c744ef commit 8cd9dba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

demos/computeflocking/src/computeflockingapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ namespace nap
123123
if (ImGui::CollapsingHeader("Bloom Texture", ImGuiTreeNodeFlags_DefaultOpen))
124124
{
125125
const float aspect = coloradjust_comp->getOutputTexture().getHeight() / static_cast<float>(coloradjust_comp->getOutputTexture().getWidth());
126-
const float width = ImGui::GetWindowContentRegionWidth();
126+
const float width = ImGui::GetContentRegionAvail().x;
127127
ImGui::Image(coloradjust_comp->getOutputTexture(), { width, width * aspect });
128128
}
129129
ImGui::End();

0 commit comments

Comments
 (0)