diff options
-rw-r--r-- | common/pango.c | 6 | ||||
-rw-r--r-- | 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) { | |||
71 | } | 71 | } |
72 | 72 | ||
73 | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, | 73 | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, |
74 | const char *text, int32_t scale, bool markup) { | 74 | const char *text, double scale, bool markup) { |
75 | PangoLayout *layout = pango_cairo_create_layout(cairo); | 75 | PangoLayout *layout = pango_cairo_create_layout(cairo); |
76 | PangoAttrList *attrs; | 76 | PangoAttrList *attrs; |
77 | if (markup) { | 77 | if (markup) { |
@@ -103,7 +103,7 @@ PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, | |||
103 | } | 103 | } |
104 | 104 | ||
105 | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, | 105 | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, |
106 | int32_t scale, bool markup, const char *fmt, ...) { | 106 | double scale, bool markup, const char *fmt, ...) { |
107 | static char buf[2048]; | 107 | static char buf[2048]; |
108 | 108 | ||
109 | va_list args; | 109 | va_list args; |
@@ -120,7 +120,7 @@ void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, | |||
120 | } | 120 | } |
121 | 121 | ||
122 | void pango_printf(cairo_t *cairo, const char *font, | 122 | void pango_printf(cairo_t *cairo, const char *font, |
123 | int32_t scale, bool markup, const char *fmt, ...) { | 123 | double scale, bool markup, const char *fmt, ...) { |
124 | static char buf[2048]; | 124 | static char buf[2048]; |
125 | 125 | ||
126 | va_list args; | 126 | 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 @@ | |||
18 | */ | 18 | */ |
19 | int escape_markup_text(const char *src, char *dest, int dest_length); | 19 | int escape_markup_text(const char *src, char *dest, int dest_length); |
20 | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, | 20 | PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, |
21 | const char *text, int32_t scale, bool markup); | 21 | const char *text, double scale, bool markup); |
22 | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, | 22 | void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, |
23 | int32_t scale, bool markup, const char *fmt, ...); | 23 | double scale, bool markup, const char *fmt, ...); |
24 | void pango_printf(cairo_t *cairo, const char *font, | 24 | void pango_printf(cairo_t *cairo, const char *font, |
25 | int32_t scale, bool markup, const char *fmt, ...); | 25 | double scale, bool markup, const char *fmt, ...); |
26 | 26 | ||
27 | #endif | 27 | #endif |