mirror of https://github.com/fltk/fltk
Add compile-time check of required minimum cairo version
This commit is contained in:
parent
0fa49f0ab4
commit
46406d1d21
|
@ -31,6 +31,9 @@
|
||||||
#if ! PANGO_VERSION_CHECK(1,16,0)
|
#if ! PANGO_VERSION_CHECK(1,16,0)
|
||||||
# error "Requires Pango 1.16 or higher"
|
# error "Requires Pango 1.16 or higher"
|
||||||
#endif
|
#endif
|
||||||
|
#if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1,10,0)
|
||||||
|
# error "Requires Cairo 1.10 or higher"
|
||||||
|
#endif
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdlib.h> // abs(int)
|
#include <stdlib.h> // abs(int)
|
||||||
#include <string.h> // memcpy()
|
#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.
|
// Region-handling member functions.
|
||||||
// They are used ONLY if the cairo graphics driver is the display graphics driver.
|
// 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.
|
// 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) {
|
Fl_Region Fl_Cairo_Graphics_Driver::XRectangleRegion(int x, int y, int w, int h) {
|
||||||
cairo_rectangle_int_t rect = {x, y, w, h};
|
cairo_rectangle_int_t rect = {x, y, w, h};
|
||||||
|
|
Loading…
Reference in New Issue