diff options
author | Murray Cumming <murrayc@murrayc.com> | 2017-04-19 12:07:27 +0200 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2017-04-19 12:36:16 +0200 |
commit | ea3a5d9d39eb0bb0c26a911e42348b079404b279 (patch) | |
tree | c9a2ad9d3d49b1fd9970380e5bdf1da986236455 /examples | |
parent | 2c2e56715a6ff971c60f3adaab027b06870a5179 (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.cc | 2 |
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); |