diff options
-rw-r--r-- | src/mac.m | 2 | ||||
-rw-r--r-- | src/win.c | 2 | ||||
-rw-r--r-- | src/x11.c | 2 |
3 files changed, 3 insertions, 3 deletions
@@ -1718,7 +1718,7 @@ puglSetFrame(PuglView* view, const PuglRect frame) PuglStatus puglSetPosition(PuglView* const view, const int x, const int y) { - if (x > INT16_MAX || y > INT16_MAX) { + if (x < INT16_MIN || x > INT16_MAX || y < INT16_MIN || y > INT16_MAX) { return PUGL_BAD_PARAMETER; } @@ -1222,7 +1222,7 @@ puglSetFrame(PuglView* view, const PuglRect frame) PuglStatus puglSetPosition(PuglView* const view, const int x, const int y) { - if (x > INT16_MAX || y > INT16_MAX) { + if (x < INT16_MIN || x > INT16_MAX || y < INT16_MIN || y > INT16_MAX) { return PUGL_BAD_PARAMETER; } @@ -1845,7 +1845,7 @@ puglSetPosition(PuglView* const view, const int x, const int y) Display* const display = view->world->impl->display; const Window win = view->impl->win; - if (x > INT16_MAX || y > INT16_MAX) { + if (x < INT16_MIN || x > INT16_MAX || y < INT16_MIN || y > INT16_MAX) { return PUGL_BAD_PARAMETER; } |