summaryrefslogtreecommitdiff
path: root/base/rect.c
diff options
context:
space:
mode:
Diffstat (limited to 'base/rect.c')
-rw-r--r--base/rect.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/base/rect.c b/base/rect.c
index cb15d434..cc8d0a76 100644
--- a/base/rect.c
+++ b/base/rect.c
@@ -1,6 +1,17 @@
#include <fitz.h>
fz_rect
+fz_infiniterect(void)
+{
+ fz_rect r;
+ r.min.x = 1;
+ r.min.y = 1;
+ r.max.x = -1;
+ r.max.y = -1;
+ return r;
+}
+
+fz_rect
fz_intersectrects(fz_rect a, fz_rect b)
{
fz_rect r;