diff options
author | Simon Ser <contact@emersion.fr> | 2021-02-23 17:41:15 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-02-23 17:42:04 +0100 |
commit | 66343839b146a54505b746784cd42a8efb844963 (patch) | |
tree | 3d591c499d37e17489819295225547821a80239b /sway/tree | |
parent | 8f2eeae2853a4a7d0aea9c09a2c7ed4c2c7e557f (diff) |
Fix wl_shm_format passed to wlr_texture_from_pixels
See https://github.com/swaywm/wlroots/pull/2744
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/container.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 79c23274..6b4c6de2 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -1,5 +1,6 @@ #define _POSIX_C_SOURCE 200809L #include <assert.h> +#include <drm_fourcc.h> #include <stdint.h> #include <stdlib.h> #include <string.h> @@ -508,7 +509,7 @@ static void update_title_texture(struct sway_container *con, struct wlr_renderer *renderer = wlr_backend_get_renderer( output->wlr_output->backend); *texture = wlr_texture_from_pixels( - renderer, WL_SHM_FORMAT_ARGB8888, stride, width, height, data); + renderer, DRM_FORMAT_ARGB8888, stride, width, height, data); cairo_surface_destroy(surface); g_object_unref(pango); cairo_destroy(cairo); @@ -1594,7 +1595,7 @@ static void update_marks_texture(struct sway_container *con, struct wlr_renderer *renderer = wlr_backend_get_renderer( output->wlr_output->backend); *texture = wlr_texture_from_pixels( - renderer, WL_SHM_FORMAT_ARGB8888, stride, width, height, data); + renderer, DRM_FORMAT_ARGB8888, stride, width, height, data); cairo_surface_destroy(surface); g_object_unref(pango); cairo_destroy(cairo); |