aboutsummaryrefslogtreecommitdiffstats
path: root/src/win.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/win.c')
-rw-r--r--src/win.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/win.c b/src/win.c
index 190a87c..dc1e62c 100644
--- a/src/win.c
+++ b/src/win.c
@@ -1195,8 +1195,8 @@ puglWinCreateWindow(PuglView* const view,
const unsigned winFlags = puglWinGetWindowFlags(view);
const unsigned winExFlags = puglWinGetWindowExFlags(view);
- if (view->frame.width == 0.0 && view->frame.height == 0.0) {
- if (view->defaultWidth == 0.0 && view->defaultHeight == 0.0) {
+ if (view->frame.width <= 0.0 && view->frame.height <= 0.0) {
+ if (view->defaultWidth <= 0.0 && view->defaultHeight <= 0.0) {
return PUGL_BAD_CONFIGURATION;
}