Skip to content

Commit

Permalink
Fix #312 — trigger resize on window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthaTi committed Jan 17, 2025
1 parent 201188c commit 9591aa2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/fluid/raylib_view.d
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class RaylibView(RaylibViewVersion raylibVersion) : Node, CanvasIO, MouseIO, Key

}

override void drawImpl(Rectangle, Rectangle) {
override void drawImpl(Rectangle, Rectangle) @trusted {

updateMouse();
updateKeyboard();
Expand All @@ -237,6 +237,10 @@ class RaylibView(RaylibViewVersion raylibVersion) : Node, CanvasIO, MouseIO, Key
drawChild(next, _cropArea);
}

if (IsWindowResized) {
updateSize();
}

}

protected void updateMouse() @trusted {
Expand Down

0 comments on commit 9591aa2

Please sign in to comment.