From 9960f7e7efeb3347fef042ae7da4c203b263da6f Mon Sep 17 00:00:00 2001 From: IoI_xD Date: Wed, 8 Apr 2026 18:20:58 -0700 Subject: [PATCH] composite polygons properly --- src/backend/wayland.c | 2 +- src/draw.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/wayland.c b/src/backend/wayland.c index f4f6164..f9b1b0c 100644 --- a/src/backend/wayland.c +++ b/src/backend/wayland.c @@ -2203,7 +2203,7 @@ static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLL n = delaunay(points, points_count, out, MAXTRI); - pixman_composite_triangles(PIXMAN_OP_ATOP_REVERSE, image, handle->wayland.framebuffer.pixman_fb, PIXMAN_a8, 0, 0, 0, 0, points_count, out); + pixman_composite_triangles(PIXMAN_OP_OVER, image, handle->wayland.framebuffer.pixman_fb, PIXMAN_a8, 0, 0, 0, 0, points_count, out); pixman_image_unref(image); diff --git a/src/draw.c b/src/draw.c index 55ace33..7d23aa9 100644 --- a/src/draw.c +++ b/src/draw.c @@ -143,7 +143,7 @@ void MwDrawRectFading(MwWidget handle, MwRect* rect, MwLLColor color, int rounde int x = (roundness + 2); int y = rect->y + (roundness + 2); double point = ((i + (M_PI * 4)) / div); - double point2 = (((i + 2) + (M_PI * 4)) / div); + double point2 = (((i + 1) + (M_PI * 4)) / div); r.x = (roundness + 4) - (sin(point) * roundness); r.y = y + (cos(point) * roundness) + 1; r.width = roundness;