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

Fix black bar generation

Was wrong and therefore causing flickering.
parent d0280d9d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #4434 passed
...@@ -1335,10 +1335,15 @@ local_draw_rect(struct rectlist *rect) ...@@ -1335,10 +1335,15 @@ local_draw_rect(struct rectlist *rect)
// TODO: We really only need to do this once after changing resolution... // TODO: We really only need to do this once after changing resolution...
if (xoff > 0 || yoff > 0) { if (xoff > 0 || yoff > 0) {
if (yoff != 0) {
x11.XFillRectangle(dpy, win, gc, 0, 0, w, yoff); x11.XFillRectangle(dpy, win, gc, 0, 0, w, yoff);
x11.XFillRectangle(dpy, win, gc, 0, yoff, xoff, yoff + xim->height); }
x11.XFillRectangle(dpy, win, gc, xoff+xim->width, yoff, w, yoff + xim->height); if (xoff != 0) {
x11.XFillRectangle(dpy, win, gc, 0, yoff + xim->height, w, h); x11.XFillRectangle(dpy, win, gc, 0, yoff, xoff, yoff + ctop);
}
// These clean up odd-numbered widths,
x11.XFillRectangle(dpy, win, gc, xoff + cleft, yoff, w, yoff + ctop);
x11.XFillRectangle(dpy, win, gc, 0, yoff + ctop, w, h);
} }
if (internal_scaling || xrender_found == false) { if (internal_scaling || xrender_found == false) {
if (last == NULL) if (last == NULL)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment