diff options
author | Thomas White <taw@bitwiz.me.uk> | 2019-10-10 17:38:23 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.me.uk> | 2019-10-10 17:38:23 +0200 |
commit | 23c8103b45433c0bef316c84acbc74db4dcb5621 (patch) | |
tree | 6eaa453f85a00945546ddb9a62a0d25d81ac4c0d /libstorycode/render_cairo_common.c | |
parent | 428a3329d1b86c9daa15fa72b2fbbd54859579ca (diff) |
Make symbol names unique across all files
Enables Meson unity builds, helps ctags work, and reduces space for bugs
Diffstat (limited to 'libstorycode/render_cairo_common.c')
-rw-r--r-- | libstorycode/render_cairo_common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libstorycode/render_cairo_common.c b/libstorycode/render_cairo_common.c index b3883c9..d2b3338 100644 --- a/libstorycode/render_cairo_common.c +++ b/libstorycode/render_cairo_common.c @@ -95,3 +95,14 @@ int runs_to_pangolayout(PangoLayout *layout, struct text_run *runs, int n_runs) return 0; } + + +PangoAlignment to_pangoalignment(enum alignment align) +{ + switch ( align ) { + case ALIGN_LEFT : return PANGO_ALIGN_LEFT; + case ALIGN_RIGHT : return PANGO_ALIGN_RIGHT; + case ALIGN_CENTER : return PANGO_ALIGN_CENTER; + default: return PANGO_ALIGN_LEFT; + } +} |