mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Fix wl_shm_format passed to wlr_texture_from_pixels
See https://github.com/swaywm/wlroots/pull/2744
This commit is contained in:
parent
8f2eeae285
commit
66343839b1
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
#define _POSIX_C_SOURCE 200809L
|
#define _POSIX_C_SOURCE 200809L
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <drm_fourcc.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.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(
|
struct wlr_renderer *renderer = wlr_backend_get_renderer(
|
||||||
output->wlr_output->backend);
|
output->wlr_output->backend);
|
||||||
*texture = wlr_texture_from_pixels(
|
*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);
|
cairo_surface_destroy(surface);
|
||||||
g_object_unref(pango);
|
g_object_unref(pango);
|
||||||
cairo_destroy(cairo);
|
cairo_destroy(cairo);
|
||||||
|
@ -1594,7 +1595,7 @@ static void update_marks_texture(struct sway_container *con,
|
||||||
struct wlr_renderer *renderer = wlr_backend_get_renderer(
|
struct wlr_renderer *renderer = wlr_backend_get_renderer(
|
||||||
output->wlr_output->backend);
|
output->wlr_output->backend);
|
||||||
*texture = wlr_texture_from_pixels(
|
*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);
|
cairo_surface_destroy(surface);
|
||||||
g_object_unref(pango);
|
g_object_unref(pango);
|
||||||
cairo_destroy(cairo);
|
cairo_destroy(cairo);
|
||||||
|
|
Loading…
Reference in a new issue