summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMurray Cumming <murrayc@murrayc.com>2017-04-19 12:07:27 +0200
committerMurray Cumming <murrayc@murrayc.com>2017-04-19 12:36:16 +0200
commitea3a5d9d39eb0bb0c26a911e42348b079404b279 (patch)
treec9a2ad9d3d49b1fd9970380e5bdf1da986236455 /examples
parent2c2e56715a6ff971c60f3adaab027b06870a5179 (diff)
Change Cairo::HintMetrics enum to Cairo::FontOptions::HintMetrics.
And change this from an old-style enum to a C++11 enum class.
Diffstat (limited to 'examples')
-rw-r--r--examples/text/text-rotate.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/text/text-rotate.cc b/examples/text/text-rotate.cc
index ce57338..fe2c9d8 100644
--- a/examples/text/text-rotate.cc
+++ b/examples/text/text-rotate.cc
@@ -51,7 +51,7 @@ void draw(Cairo::RefPtr<Cairo::Context> cr, int width, int height)
Cairo::FontOptions font_options;
font_options.set_hint_style(Cairo::FontOptions::HintStyle::NONE);
- font_options.set_hint_metrics(Cairo::HINT_METRICS_OFF);
+ font_options.set_hint_metrics(Cairo::FontOptions::HintMetrics::OFF);
font_options.set_antialias(Cairo::ANTIALIAS_GRAY);
cr->set_font_options(font_options);