summaryrefslogtreecommitdiff
path: root/hacks
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-22 22:51:44 +0100
committerCarl Hetherington <cth@carlh.net>2024-03-20 18:25:09 +0100
commit0232d80a625b2ffae687e6473ab3fc2603cf87ea (patch)
treee7d485decb9f9bb784a859cfd6f2f042ed9dfd77 /hacks
parent79904ec4669a60932004daf35256565aefa0c392 (diff)
Allow building with C++17 and updated libxml++/pangomm/cairomm.
Diffstat (limited to 'hacks')
-rw-r--r--hacks/text.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/hacks/text.cc b/hacks/text.cc
index bf391a325..ff5d6f8b8 100644
--- a/hacks/text.cc
+++ b/hacks/text.cc
@@ -19,10 +19,10 @@ int main ()
Cairo::RefPtr<Cairo::ImageSurface> surface = Cairo::ImageSurface::create (
data,
- Cairo::FORMAT_ARGB32,
+ Cairo::ImageSurface::Format::ARGB32,
width, height,
/* Cairo ARGB32 means first byte blue, second byte green, third byte red, fourth byte alpha */
- Cairo::ImageSurface::format_stride_for_width (Cairo::FORMAT_ARGB32, width)
+ Cairo::ImageSurface::format_stride_for_width(Cairo::ImageSurface::Format::ARGB32, width)
);
Cairo::RefPtr<Cairo::Context> context = Cairo::Context::create (surface);
@@ -33,7 +33,7 @@ int main ()
context->rectangle (0, 0, width, height);
context->fill ();
- layout->set_alignment (Pango::ALIGN_LEFT);
+ layout->set_alignment (Pango::Alignment::LEFT);
context->set_line_width (1);
// Cairo::FontOptions fo;