Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Remove second call of _updateWindowSize()
173e095
in
#7785
accidently added a second call to `this._updateWindowSize();`
  • Loading branch information
bensgilbert authored May 25, 2025
commit 6195f88d34c3f016c32b1bc9fe0d4e3c1a58a727
4 changes: 1 addition & 3 deletions src/core/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -657,9 +657,6 @@ class p5 {
}
};

// ensure correct reporting of window dimensions
this._updateWindowSize();

const friendlyBindGlobal = this._createFriendlyGlobalFunctionBinder();

// If the user has created a global setup or draw function,
Expand Down Expand Up @@ -699,6 +696,7 @@ class p5 {
p5._checkForUserDefinedFunctions(this);
}

// ensure correct reporting of window dimensions
this._updateWindowSize();

// call any registered init functions
Expand Down
Loading