diff options
Diffstat (limited to 'sway/border.c')
-rw-r--r-- | sway/border.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/border.c b/sway/border.c index 80e51580..2eefbbf5 100644 --- a/sway/border.c +++ b/sway/border.c | |||
@@ -11,13 +11,13 @@ | |||
11 | #include <arpa/inet.h> | 11 | #include <arpa/inet.h> |
12 | 12 | ||
13 | void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { | 13 | void cairo_set_source_u32(cairo_t *cairo, uint32_t color) { |
14 | color = htonl(color); | 14 | color = htonl(color); |
15 | 15 | ||
16 | cairo_set_source_rgba(cairo, | 16 | cairo_set_source_rgba(cairo, |
17 | (color >> (2*8) & 0xFF) / 255.0, | 17 | (color >> (2*8) & 0xFF) / 255.0, |
18 | (color >> (1*8) & 0xFF) / 255.0, | 18 | (color >> (1*8) & 0xFF) / 255.0, |
19 | (color >> (0*8) & 0xFF) / 255.0, | 19 | (color >> (0*8) & 0xFF) / 255.0, |
20 | (color >> (3*8) & 0xFF) / 255.0); | 20 | (color >> (3*8) & 0xFF) / 255.0); |
21 | } | 21 | } |
22 | 22 | ||
23 | static cairo_t *create_border_buffer(swayc_t *view, struct wlc_geometry geo, cairo_surface_t **surface) { | 23 | static cairo_t *create_border_buffer(swayc_t *view, struct wlc_geometry geo, cairo_surface_t **surface) { |