summaryrefslogtreecommitdiff
path: root/src/drivers/PostScript/Fl_PostScript.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-07-24 18:03:11 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-07-24 18:03:11 +0200
commit237c0c1393dd9fe6f6c9ec8fb943141751c162bd (patch)
tree9f08fb83c4f06e851c3bdbfde625b75f9d84347d /src/drivers/PostScript/Fl_PostScript.cxx
parentcd60ea17b021ce4442bc5efea8b7082463c682b8 (diff)
Add Pango version check for Fl_PostScript_Graphics_Driver
Diffstat (limited to 'src/drivers/PostScript/Fl_PostScript.cxx')
-rw-r--r--src/drivers/PostScript/Fl_PostScript.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/PostScript/Fl_PostScript.cxx b/src/drivers/PostScript/Fl_PostScript.cxx
index 7b69f5173..3d0b15f59 100644
--- a/src/drivers/PostScript/Fl_PostScript.cxx
+++ b/src/drivers/PostScript/Fl_PostScript.cxx
@@ -32,6 +32,9 @@
#include <FL/math.h> // for M_PI
#include <pango/pangocairo.h>
#include <cairo/cairo-ps.h>
+# if ! PANGO_VERSION_CHECK(1,22,0)
+# error "Requires Pango 1.22 or higher"
+# endif
#endif
const char *Fl_PostScript_File_Device::file_chooser_title = "Select a .ps file";
@@ -1536,7 +1539,7 @@ void Fl_PostScript_Graphics_Driver::transformed_draw(const char* str, int n, dou
cairo_translate(cairo_, x, y - height() + descent());
s = (s/pwidth) * PANGO_SCALE;
cairo_scale(cairo_, s, s);
- pango_cairo_show_layout(cairo_, pango_layout_);
+ pango_cairo_show_layout(cairo_, pango_layout_); // 1.10
}
cairo_restore(cairo_);
check_status();