From 44f84748f83d57a9b2c1dcefb47b676051435498 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 24 Jul 2023 13:00:15 +0200 Subject: README --- src/color_conversion.c | 2 +- src/egl.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/color_conversion.c b/src/color_conversion.c index 06d3ebe..6d9f9d2 100644 --- a/src/color_conversion.c +++ b/src/color_conversion.c @@ -21,7 +21,7 @@ static float abs_f(float v) { #define RGB_TO_YUV "const mat4 RGBtoYUV = mat4(0.2126, 0.5000, -0.1146, 0.0,\n" \ " 0.7152, -0.4542, -0.3854, 0.0,\n" \ " 0.0722, -0.0468, 0.5000, 0.0,\n" \ - " 0.0, 0.500, 0.500, 1.0);" + " 0.0000, 0.5000, 0.5000, 1.0);" static int load_shader_rgb(gsr_shader *shader, gsr_egl *egl, int *rotation_uniform) { char vertex_shader[2048]; diff --git a/src/egl.c b/src/egl.c index 9fd5925..3892cdc 100644 --- a/src/egl.c +++ b/src/egl.c @@ -11,6 +11,8 @@ #include "../external/wlr-export-dmabuf-unstable-v1-client-protocol.h" #include +// Move this shit to a separate wayland file, and have a separate file for x11. + static void output_handle_geometry(void *data, struct wl_output *wl_output, int32_t x, int32_t y, int32_t phys_width, int32_t phys_height, int32_t subpixel, const char *make, const char *model, @@ -566,6 +568,7 @@ void gsr_egl_update(gsr_egl *self) { if(!self->wayland.dpy) return; + // TODO: pselect on wl_display_get_fd before doing dispatch wl_display_dispatch(self->wayland.dpy); } -- cgit v1.2.3