Skip to content

Commit 444e634

Browse files
authored
Merge pull request #7847 from bensgilbert/patch-1
Remove second call of _updateWindowSize()
2 parents ae09118 + b857dc5 commit 444e634

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/core/main.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -657,9 +657,6 @@ class p5 {
657657
}
658658
};
659659

660-
// ensure correct reporting of window dimensions
661-
this._updateWindowSize();
662-
663660
const friendlyBindGlobal = this._createFriendlyGlobalFunctionBinder();
664661

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

699+
// ensure correct reporting of window dimensions
702700
this._updateWindowSize();
703701

704702
// call any registered init functions

0 commit comments

Comments
 (0)