Skip to content
Snippets Groups Projects
Commit 11050ff1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Fix up source/last for external scaling

This was ending up using an uninitialized value
parent b0feed94
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4397 failed
......@@ -789,6 +789,7 @@ local_draw_rect(struct rectlist *rect)
dh = source->h;
}
else {
source = NULL;
cleft = w;
ctop = h;
source_data = rect->data;
......@@ -892,14 +893,18 @@ local_draw_rect(struct rectlist *rect)
if (x_internal_scaling || xrender_found == false) {
if (last == NULL)
x11.XPutImage(dpy, win, gc, xim, 0, 0, xoff, yoff, source->w, source->h);
else
else {
release_buffer(last);
last = NULL;
}
}
else {
#ifdef WITH_XRENDER
bitmap_drv_free_rect(rect);
if (last != NULL)
if (last != NULL) {
release_buffer(last);
last = NULL;
}
x11.XPutImage(dpy, xrender_pm, gc, xim, 0, 0, 0, 0, dw, dh);
x11.XRenderComposite(dpy, PictOpSrc, xrender_src_pict, 0, xrender_dst_pict,
0, 0, 0, 0, 0, 0,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment