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.
|
* Determines the minimum size of this window.
|
||||||
|
* <p>
|
||||||
|
* If set to {@code -1}, will enforce no minimum window size.
|
||||||
*
|
*
|
||||||
* @since v1-alpha1
|
* @since v1-alpha1
|
||||||
*
|
*
|
||||||
* -- GETTER --
|
* -- GETTER --
|
||||||
* Returns the minimum window size.
|
* Returns the minimum window size.
|
||||||
|
* <p>
|
||||||
|
* If set to {@code -1}, will enforce no minimum window size.
|
||||||
*
|
*
|
||||||
* @return minimum window size
|
* @return minimum window size
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*
|
*
|
||||||
* -- SETTER --
|
* -- SETTER --
|
||||||
* Sets the minimum window size.
|
* Sets the minimum window size.
|
||||||
|
* <p>
|
||||||
|
* If set to {@code -1}, will enforce no minimum window size.
|
||||||
*
|
*
|
||||||
* @param size new minimum window size
|
* @param size new minimum window size
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
|
@ -226,17 +232,23 @@ public abstract class Window {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines the maximum size of this window.
|
* Determines the maximum size of this window.
|
||||||
|
* <p>
|
||||||
|
* If set to {@code -1}, will enforce no maximum window size.
|
||||||
*
|
*
|
||||||
* @since v1-alpha1
|
* @since v1-alpha1
|
||||||
*
|
*
|
||||||
* -- GETTER --
|
* -- GETTER --
|
||||||
* Returns the maximum window size.
|
* Returns the maximum window size.
|
||||||
|
* <p>
|
||||||
|
* If set to {@code -1}, will enforce no maximum window size.
|
||||||
*
|
*
|
||||||
* @return maximum window size
|
* @return maximum window size
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
*
|
*
|
||||||
* -- SETTER --
|
* -- SETTER --
|
||||||
* Sets the maximum window size.
|
* Sets the maximum window size.
|
||||||
|
* <p>
|
||||||
|
* If set to {@code -1}, will enforce no maximum window size.
|
||||||
*
|
*
|
||||||
* @param size new maximum window size
|
* @param size new maximum window size
|
||||||
* @since v1-alpha2
|
* @since v1-alpha2
|
||||||
|
@ -869,9 +881,9 @@ public abstract class Window {
|
||||||
|
|
||||||
// Set defaults
|
// Set defaults
|
||||||
if (minimumSize == null)
|
if (minimumSize == null)
|
||||||
minimumSize = new Vec2i(0, 0);
|
minimumSize = new Vec2i(-1, -1);
|
||||||
if (maximumSize == null)
|
if (maximumSize == null)
|
||||||
maximumSize = new Vec2i(0, 0);
|
maximumSize = new Vec2i(-1, -1);
|
||||||
if (windowMode == null)
|
if (windowMode == null)
|
||||||
windowMode = WindowMode.WINDOWED;
|
windowMode = WindowMode.WINDOWED;
|
||||||
if (vsyncMode == null)
|
if (vsyncMode == null)
|
||||||
|
|
Loading…
Reference in a new issue