Skip to content

Commit

Permalink
Screen: Fix mode getter
Browse files Browse the repository at this point in the history
Last time, I promise! 🐶

Famous last words.
  • Loading branch information
Dimensionscape committed Apr 10, 2024
1 parent b7b1d09 commit fc8a0b7
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 @@ -125,7 +125,8 @@ class Screen extends EventDispatcher

@:noCompletion private function get_mode():ScreenMode
{
return new ScreenMode(_display.currentMode);
var display = System.getDisplay(__displayIndex);
return new ScreenMode(display.currentMode);
}

@:noCompletion private function get_bounds():Rectangle
Expand Down

0 comments on commit fc8a0b7

Please sign in to comment.