mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +02:00
The window minwidth and minheight can't be less than 1
This commit is contained in:
@@ -85,8 +85,8 @@ bool Window::setWindow(int width, int height, WindowFlags *flags)
|
||||
if (flags)
|
||||
f = *flags;
|
||||
|
||||
f.minwidth = std::max(f.minwidth, 0);
|
||||
f.minheight = std::max(f.minheight, 0);
|
||||
f.minwidth = std::max(f.minwidth, 1);
|
||||
f.minheight = std::max(f.minheight, 1);
|
||||
|
||||
f.display = std::min(std::max(f.display, 0), getDisplayCount());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user