Closed veltza closed 2 months ago
This is just an aesthetic bug that users will hardly ever encounter. So I wouldn't have bothered to fix this if it wasn't so easy to tackle.
Interesting mechanism in the outer for loop.
Now that you said it, I wonder how I came to that solution. Maybe this would have been a cleaner solution:
for (i = 0; i < 2; i++) {
for (im = i ? term.images : term.images_alt; im; im = im->next) {
if (im->pixmap)
XFreePixmap(xw.dpy, (Drawable)im->pixmap);
if (im->clipmask)
XFreePixmap(xw.dpy, (Drawable)im->clipmask);
im->pixmap = NULL;
im->clipmask = NULL;
}
}
Oh well...
This fixes an issue where images on the main screen don't scale when you increase or decrease the font size on the alt screen.