diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-09-22 13:56:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-22 13:56:51 -0500 |
commit | 082488a81c491faa71ddc2c87fe985ef28f5d69d (patch) | |
tree | ee7316a573d5feb5332bb5cef509bd37faf5bcf7 /include | |
parent | Merge pull request #2660 from RyanDwyer/fix-scratchpad-iteration (diff) | |
parent | swaybar, swaylock, & tree/container: Set cairo font options to render text an... (diff) | |
download | sway-082488a81c491faa71ddc2c87fe985ef28f5d69d.tar.gz sway-082488a81c491faa71ddc2c87fe985ef28f5d69d.tar.zst sway-082488a81c491faa71ddc2c87fe985ef28f5d69d.zip |
Merge pull request #2677 from ggreer/pretty-fonts
Render fonts slightly nicer
Diffstat (limited to 'include')
-rw-r--r-- | include/cairo.h | 2 | ||||
-rw-r--r-- | include/swaybar/bar.h | 1 | ||||
-rw-r--r-- | include/swaylock/swaylock.h | 1 |
3 files changed, 4 insertions, 0 deletions
diff --git a/include/cairo.h b/include/cairo.h index 31672705..86530b60 100644 --- a/include/cairo.h +++ b/include/cairo.h | |||
@@ -2,8 +2,10 @@ | |||
2 | #define _SWAY_CAIRO_H | 2 | #define _SWAY_CAIRO_H |
3 | #include <stdint.h> | 3 | #include <stdint.h> |
4 | #include <cairo/cairo.h> | 4 | #include <cairo/cairo.h> |
5 | #include <wlr/types/wlr_output.h> | ||
5 | 6 | ||
6 | void cairo_set_source_u32(cairo_t *cairo, uint32_t color); | 7 | void cairo_set_source_u32(cairo_t *cairo, uint32_t color); |
8 | cairo_subpixel_order_t to_cairo_subpixel_order(enum wl_output_subpixel subpixel); | ||
7 | 9 | ||
8 | cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image, | 10 | cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image, |
9 | int width, int height); | 11 | int width, int height); |
diff --git a/include/swaybar/bar.h b/include/swaybar/bar.h index 4065fb8b..29e96159 100644 --- a/include/swaybar/bar.h +++ b/include/swaybar/bar.h | |||
@@ -81,6 +81,7 @@ struct swaybar_output { | |||
81 | 81 | ||
82 | uint32_t width, height; | 82 | uint32_t width, height; |
83 | int32_t scale; | 83 | int32_t scale; |
84 | enum wl_output_subpixel subpixel; | ||
84 | struct pool_buffer buffers[2]; | 85 | struct pool_buffer buffers[2]; |
85 | struct pool_buffer *current_buffer; | 86 | struct pool_buffer *current_buffer; |
86 | }; | 87 | }; |
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h index 950cfaaf..2f0cd34d 100644 --- a/include/swaylock/swaylock.h +++ b/include/swaylock/swaylock.h | |||
@@ -82,6 +82,7 @@ struct swaylock_surface { | |||
82 | bool frame_pending, dirty; | 82 | bool frame_pending, dirty; |
83 | uint32_t width, height; | 83 | uint32_t width, height; |
84 | int32_t scale; | 84 | int32_t scale; |
85 | enum wl_output_subpixel subpixel; | ||
85 | char *output_name; | 86 | char *output_name; |
86 | struct wl_list link; | 87 | struct wl_list link; |
87 | }; | 88 | }; |