File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,11 @@ See docs/process.md for more on how version tagging works.
20
20
21
21
3.1.49 (in development)
22
22
-----------------------
23
+ - The ` glfwSetWindowSize ` function no longer switches to fullscreen when the
24
+ width/height provided as parameters match the screen size. This behavior
25
+ now matches the behavior of SDL and glut. In order to switch to fullscreen,
26
+ the client code should invoke ` Module.requestFullscreen(...) ` from a user
27
+ triggered event otherwise the browser raises an error. (#20600 )
23
28
24
29
3.1.48 - 11/05/23
25
30
-----------------
Original file line number Diff line number Diff line change @@ -981,14 +981,9 @@ var LibraryGLFW = {
981
981
if ( ! win ) return ;
982
982
983
983
if ( GLFW . active . id == win . id ) {
984
- if ( width == screen . width && height == screen . height ) {
985
- Browser . requestFullscreen ( ) ;
986
- } else {
987
- Browser . exitFullscreen ( ) ;
988
- Browser . setCanvasSize ( width , height ) ;
989
- win . width = width ;
990
- win . height = height ;
991
- }
984
+ Browser . setCanvasSize ( width , height ) ;
985
+ win . width = width ;
986
+ win . height = height ;
992
987
}
993
988
994
989
if ( win . windowSizeFunc ) {
You can’t perform that action at this time.
0 commit comments