Skip to content

Commit

Permalink
Screen: Fix modes getter
Browse files Browse the repository at this point in the history
Whoops! Small discrepancy remained when merging the draft with the src version.
  • Loading branch information
Dimensionscape committed Apr 10, 2024
1 parent 238c126 commit 01785be
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 @@ -102,8 +102,9 @@ class Screen extends EventDispatcher

@:noCompletion private function get_modes():Array<ScreenMode>
{
var display = System.getDisplay(__displayIndex);
var screenModes = [];
var displayModes = _display.supportedModes;
var displayModes = display.supportedModes;

for (displayMode in displayModes)
{
Expand Down

0 comments on commit 01785be

Please sign in to comment.