Fix alpha mask

This commit is contained in:
speedie 2023-06-08 20:30:42 +02:00
parent 5745b52bc9
commit 148c219ec5
2 changed files with 1 additions and 3 deletions

View file

@ -129,8 +129,6 @@ void drawimage(void) {
void setimageopts(void) {
imlib_set_cache_size(8192 * 1024);
imlib_context_set_blend(1);
imlib_context_set_dither(1);
imlib_set_color_usage(128);
}

View file

@ -432,7 +432,7 @@ void drw_img(Drw *drw, int x, int y) {
cairo_set_operator(drw->d, CAIRO_OPERATOR_OVER);
cairo_set_source_surface(drw->d, drw->img_surface, x, y);
cairo_paint(drw->d);
cairo_mask_surface(drw->d, drw->img_surface, x, y);
cairo_set_source_surface(drw->d, drw->surface, drw->w, drw->h);
}