From 0944d3fd9cde016a08d345b919d49ccf89bf911c Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 16 May 2018 12:01:04 -0400 Subject: [PATCH] Change scale from int32_t to double for pango --- common/pango.c | 6 +++--- include/pango.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/pango.c b/common/pango.c index 403bd9a8..c88e50ce 100644 --- a/common/pango.c +++ b/common/pango.c @@ -71,7 +71,7 @@ int escape_markup_text(const char *src, char *dest, int dest_length) { } PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, - const char *text, int32_t scale, bool markup) { + const char *text, double scale, bool markup) { PangoLayout *layout = pango_cairo_create_layout(cairo); PangoAttrList *attrs; if (markup) { @@ -103,7 +103,7 @@ PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, } void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, - int32_t scale, bool markup, const char *fmt, ...) { + double scale, bool markup, const char *fmt, ...) { static char buf[2048]; va_list args; @@ -120,7 +120,7 @@ void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, } void pango_printf(cairo_t *cairo, const char *font, - int32_t scale, bool markup, const char *fmt, ...) { + double scale, bool markup, const char *fmt, ...) { static char buf[2048]; va_list args; diff --git a/include/pango.h b/include/pango.h index d8263f9e..4492f01e 100644 --- a/include/pango.h +++ b/include/pango.h @@ -18,10 +18,10 @@ */ int escape_markup_text(const char *src, char *dest, int dest_length); PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, - const char *text, int32_t scale, bool markup); + const char *text, double scale, bool markup); void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, - int32_t scale, bool markup, const char *fmt, ...); + double scale, bool markup, const char *fmt, ...); void pango_printf(cairo_t *cairo, const char *font, - int32_t scale, bool markup, const char *fmt, ...); + double scale, bool markup, const char *fmt, ...); #endif