diff options
Diffstat (limited to 'src/internal.c')
-rw-r--r-- | src/internal.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/internal.c b/src/internal.c index 1a7b61f..3799e97 100644 --- a/src/internal.c +++ b/src/internal.c @@ -13,6 +13,12 @@ #include <string.h> bool +puglIsValidPosition(const int x, const int y) +{ + return x >= INT16_MIN && x <= INT16_MAX && y >= INT16_MIN && y <= INT16_MAX; +} + +bool puglIsValidArea(const PuglArea size) { return size.width && size.height; |