composite polygons properly
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
All checks were successful
pyrite-dev/milsko/pipeline/head This commit looks good
This commit is contained in:
parent
46c4e98506
commit
9960f7e7ef
2 changed files with 2 additions and 2 deletions
|
|
@ -2203,7 +2203,7 @@ static void MwLLPolygonImpl(MwLL handle, MwPoint* points, int points_count, MwLL
|
||||||
|
|
||||||
n = delaunay(points, points_count, out, MAXTRI);
|
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);
|
pixman_image_unref(image);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -143,7 +143,7 @@ void MwDrawRectFading(MwWidget handle, MwRect* rect, MwLLColor color, int rounde
|
||||||
int x = (roundness + 2);
|
int x = (roundness + 2);
|
||||||
int y = rect->y + (roundness + 2);
|
int y = rect->y + (roundness + 2);
|
||||||
double point = ((i + (M_PI * 4)) / div);
|
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.x = (roundness + 4) - (sin(point) * roundness);
|
||||||
r.y = y + (cos(point) * roundness) + 1;
|
r.y = y + (cos(point) * roundness) + 1;
|
||||||
r.width = roundness;
|
r.width = roundness;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue