|
|
commit 46406d1d2144b8515782e346bdbf241533b2e75a
Author: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Wed Mar 20 15:40:04 2024 +0100
Commit: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Wed Mar 20 15:40:04 2024 +0100
Add compile-time check of required minimum cairo version
src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
index 1c0ccd0..b661009 100644
--- src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
+++ src/drivers/Cairo/Fl_Cairo_Graphics_Driver.cxx
@@ -31,6 +31,9 @@
#if ! PANGO_VERSION_CHECK(1,16,0)
# error "Requires Pango 1.16 or higher"
#endif
+#if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1,10,0)
+# error "Requires Cairo 1.10 or higher"
+#endif
#include <math.h>
#include <stdlib.h> // abs(int)
#include <string.h> // memcpy()
@@ -1393,7 +1396,7 @@ void Fl_Cairo_Graphics_Driver::text_extents(const char* txt, int n, int& dx, int
// Region-handling member functions.
// They are used ONLY if the cairo graphics driver is the display graphics driver.
// They are not used if the cairo graphics driver is used to draw PostScript.
-//
+// Type cairo_region_t and associated functions require cairo â?¥ 1.10
Fl_Region Fl_Cairo_Graphics_Driver::XRectangleRegion(int x, int y, int w, int h) {
cairo_rectangle_int_t rect = {x, y, w, h};
[ Direct Link to Message ] | |
|
| |