@@ -504,8 +504,8 @@ public unsafe Vector2i ClientLocation
504504 }
505505 }
506506
507- private Vector2i ? _minimumSize ;
508- private Vector2i ? _maximumSize ;
507+ private Vector2i ? _minimumClientSize ;
508+ private Vector2i ? _maximumClientize ;
509509
510510 /// <summary>
511511 /// Gets or sets a <see cref="Vector2i" /> structure that contains the external size of this window.
@@ -570,11 +570,11 @@ public unsafe Vector2i FramebufferSize
570570 /// </remarks>
571571 public unsafe Vector2i ? MinimumSize
572572 {
573- get => _minimumSize ;
573+ get => _minimumClientSize ;
574574 set
575575 {
576- _minimumSize = value ;
577- GLFW . SetWindowSizeLimits ( WindowPtr , value ? . X ?? GLFW . DontCare , value ? . Y ?? GLFW . DontCare , _maximumSize ? . X ?? GLFW . DontCare , _maximumSize ? . Y ?? GLFW . DontCare ) ;
576+ _minimumClientSize = value ;
577+ GLFW . SetWindowSizeLimits ( WindowPtr , value ? . X ?? GLFW . DontCare , value ? . Y ?? GLFW . DontCare , _maximumClientize ? . X ?? GLFW . DontCare , _maximumClientize ? . Y ?? GLFW . DontCare ) ;
578578 }
579579 }
580580
@@ -587,11 +587,11 @@ public unsafe Vector2i? MinimumSize
587587 /// </remarks>
588588 public unsafe Vector2i ? MaximumSize
589589 {
590- get => _maximumSize ;
590+ get => _maximumClientize ;
591591 set
592592 {
593- _maximumSize = value ;
594- GLFW . SetWindowSizeLimits ( WindowPtr , _minimumSize ? . X ?? GLFW . DontCare , _minimumSize ? . Y ?? GLFW . DontCare , value ? . X ?? GLFW . DontCare , value ? . Y ?? GLFW . DontCare ) ;
593+ _maximumClientize = value ;
594+ GLFW . SetWindowSizeLimits ( WindowPtr , _minimumClientSize ? . X ?? GLFW . DontCare , _minimumClientSize ? . Y ?? GLFW . DontCare , value ? . X ?? GLFW . DontCare , value ? . Y ?? GLFW . DontCare ) ;
595595 }
596596 }
597597
@@ -882,7 +882,7 @@ public unsafe NativeWindow(NativeWindowSettings settings)
882882 GLFW . WindowHint ( WindowHintInt . RefreshRate , modePtr ->RefreshRate ) ;
883883
884884 _cachedWindowLocation = settings . Location ?? new Vector2i ( 32 , 32 ) ; // Better than nothing.
885- _cachedWindowClientSize = settings . Size ;
885+ _cachedWindowClientSize = settings . ClientSize ;
886886
887887 if ( settings . WindowState == WindowState . Fullscreen && _isVisible )
888888 {
@@ -891,7 +891,7 @@ public unsafe NativeWindow(NativeWindowSettings settings)
891891 }
892892 else
893893 {
894- WindowPtr = GLFW . CreateWindow ( settings . Size . X , settings . Size . Y , _title , null , ( Window * ) ( settings . SharedContext ? . WindowPtr ?? IntPtr . Zero ) ) ;
894+ WindowPtr = GLFW . CreateWindow ( settings . ClientSize . X , settings . ClientSize . Y , _title , null , ( Window * ) ( settings . SharedContext ? . WindowPtr ?? IntPtr . Zero ) ) ;
895895 }
896896
897897 // For Vulkan, we need to pass ContextAPI.NoAPI, otherwise we will get an exception.
@@ -954,10 +954,10 @@ public unsafe NativeWindow(NativeWindowSettings settings)
954954 GLFW . GetWindowSize ( WindowPtr , out var width , out var height ) ;
955955
956956 AspectRatio = settings . AspectRatio ;
957- _minimumSize = settings . MinimumSize ;
958- _maximumSize = settings . MaximumSize ;
957+ _minimumClientSize = settings . MinimumClientSize ;
958+ _maximumClientize = settings . MaximumClientSize ;
959959
960- GLFW . SetWindowSizeLimits ( WindowPtr , _minimumSize ? . X ?? GLFW . DontCare , _minimumSize ? . Y ?? GLFW . DontCare , _maximumSize ? . X ?? GLFW . DontCare , _maximumSize ? . Y ?? GLFW . DontCare ) ;
960+ GLFW . SetWindowSizeLimits ( WindowPtr , _minimumClientSize ? . X ?? GLFW . DontCare , _minimumClientSize ? . Y ?? GLFW . DontCare , _maximumClientize ? . X ?? GLFW . DontCare , _maximumClientize ? . Y ?? GLFW . DontCare ) ;
961961
962962 GLFW . GetWindowPos ( WindowPtr , out var x , out var y ) ;
963963
0 commit comments