summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <ddevault@linode.com>2016-09-05 11:52:52 -0400
committerLibravatar Drew DeVault <ddevault@linode.com>2016-09-05 11:52:52 -0400
commitaf441541197a102d67048b8af920d63d1af37a2f (patch)
treeb9331b05cad8aa11539540c5c8942dac90e43da5 /include
parentAdd client support for HiDPI (diff)
downloadsway-af441541197a102d67048b8af920d63d1af37a2f.tar.gz
sway-af441541197a102d67048b8af920d63d1af37a2f.tar.zst
sway-af441541197a102d67048b8af920d63d1af37a2f.zip
Fix constant scale factor in font code
Diffstat (limited to 'include')
-rw-r--r--include/client/pango.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/client/pango.h b/include/client/pango.h
index 66843041..dd2f53c3 100644
--- a/include/client/pango.h
+++ b/include/client/pango.h
@@ -5,10 +5,12 @@
5#include <pango/pangocairo.h> 5#include <pango/pangocairo.h>
6#include <stdarg.h> 6#include <stdarg.h>
7#include <stdbool.h> 7#include <stdbool.h>
8#include <stdint.h>
8 9
9PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text, bool markup); 10PangoLayout *get_pango_layout(cairo_t *cairo, const char *font, const char *text,
11 int32_t scale, bool markup);
10void get_text_size(cairo_t *cairo, const char *font, int *width, int *height, 12void get_text_size(cairo_t *cairo, const char *font, int *width, int *height,
11 bool markup, const char *fmt, ...); 13 int32_t scale, bool markup, const char *fmt, ...);
12void pango_printf(cairo_t *cairo, const char *font, bool markup, const char *fmt, ...); 14void pango_printf(cairo_t *cairo, const char *font, int32_t scale, bool markup, const char *fmt, ...);
13 15
14#endif 16#endif