Skip to content

Commit

Permalink
Screen: Fix visibleBounds getter
Browse files Browse the repository at this point in the history
Same oversight from the draft merger as before. I probably should have tested, but I was in a bit of a hurry to finish this up before I left the office for the day. 😔
  • Loading branch information
Dimensionscape committed Apr 10, 2024
1 parent 01785be commit b7b1d09
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/openfl/display/Screen.hx
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class Screen extends EventDispatcher

@:noCompletion private function get_visibleBounds():Rectangle
{
var currentMode = _display.currentMode;
var display = System.getDisplay(__displayIndex);
var currentMode = display.currentMode;
var rect:Rectangle = new Rectangle(0, 0, currentMode.width, currentMode.height);

return rect;
Expand Down

0 comments on commit b7b1d09

Please sign in to comment.