Lagrange [release]
DocumentWidget: Drawing images that have alpha
[1mdiff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c[m
[1mindex 9b6ad509..1e9dd759 100644[m
[1m--- a/src/ui/documentwidget.c[m
[1m+++ b/src/ui/documentwidget.c[m
[36m@@ -1593,6 +1593,7 @@[m [mstatic void drawRun_DrawContext_(void *context, const iGmRun *run) {[m
SDL_Texture *tex = imageTexture_GmDocument(d->widget->doc, run->imageId);[m
if (tex) {[m
const iRect dst = moved_Rect(run->visBounds, origin);[m
[32m+[m[32m fillRect_Paint(&d->paint, dst, tmBackground_ColorId); /* in case the image has alpha */[m
SDL_RenderCopy(d->paint.dst->render, tex, NULL,[m
&(SDL_Rect){ dst.pos.x, dst.pos.y, dst.size.x, dst.size.y });[m
}[m