Fix no window size limits not working at all
This commit is contained in:
parent
86e85356ba
commit
ae201f8729
1 changed files with 14 additions and 2 deletions
|
@ -205,17 +205,23 @@ public abstract class Window {
|
|||
|
||||
/**
|
||||
* Determines the minimum size of this window.
|
||||
* <p>
|
||||
* If set to {@code -1}, will enforce no minimum window size.
|
||||
*
|
||||
* @since v1-alpha1
|
||||
*
|
||||
* -- GETTER --
|
||||
* Returns the minimum window size.
|
||||
* <p>
|
||||
* If set to {@code -1}, will enforce no minimum window size.
|
||||
*
|
||||
* @return minimum window size
|
||||
* @since v1-alpha2
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the minimum window size.
|
||||
* <p>
|
||||
* If set to {@code -1}, will enforce no minimum window size.
|
||||
*
|
||||
* @param size new minimum window size
|
||||
* @since v1-alpha2
|
||||
|
@ -226,17 +232,23 @@ public abstract class Window {
|
|||
|
||||
/**
|
||||
* Determines the maximum size of this window.
|
||||
* <p>
|
||||
* If set to {@code -1}, will enforce no maximum window size.
|
||||
*
|
||||
* @since v1-alpha1
|
||||
*
|
||||
* -- GETTER --
|
||||
* Returns the maximum window size.
|
||||
* <p>
|
||||
* If set to {@code -1}, will enforce no maximum window size.
|
||||
*
|
||||
* @return maximum window size
|
||||
* @since v1-alpha2
|
||||
*
|
||||
* -- SETTER --
|
||||
* Sets the maximum window size.
|
||||
* <p>
|
||||
* If set to {@code -1}, will enforce no maximum window size.
|
||||
*
|
||||
* @param size new maximum window size
|
||||
* @since v1-alpha2
|
||||
|
@ -869,9 +881,9 @@ public abstract class Window {
|
|||
|
||||
// Set defaults
|
||||
if (minimumSize == null)
|
||||
minimumSize = new Vec2i(0, 0);
|
||||
minimumSize = new Vec2i(-1, -1);
|
||||
if (maximumSize == null)
|
||||
maximumSize = new Vec2i(0, 0);
|
||||
maximumSize = new Vec2i(-1, -1);
|
||||
if (windowMode == null)
|
||||
windowMode = WindowMode.WINDOWED;
|
||||
if (vsyncMode == null)
|
||||
|
|
Loading…
Reference in a new issue