Introduction
Introduction Statistics Contact Development Disclaimer Help
revert 427120811c034a11e20b665e8a0b2b0ad6b3149b - lel - Farbfeld image viewer
git clone git://git.codemadness.org/lel
Log
Files
Refs
README
LICENSE
---
commit 1233fc8d4638af920a3544ddd0f51e68235db602
parent 427120811c034a11e20b665e8a0b2b0ad6b3149b
Author: Hiltjo Posthuma <[email protected]>
Date: Sat, 25 Feb 2017 19:48:15 +0100
revert 427120811c034a11e20b665e8a0b2b0ad6b3149b
not sure about the previous fix, scaling would be incorrect then too.
Diffstat:
M lel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/lel.c b/lel.c
@@ -272,7 +272,7 @@ ximage(unsigned int newwidth, unsigned int newheight)
xpix = XCreatePixmap(dpy, win, winwidth, winheight, depth);
ximg = XCreateImage(dpy, CopyFromParent, depth, ZPixmap…
NULL, newwidth, newheight, 32, 0);
- ximg->data = malloc((ximg->bytes_per_line + ximg->bitmap_pad) …
+ ximg->data = malloc(ximg->bytes_per_line * ximg->height);
scale(ximg->width, ximg->height, ximg->bytes_per_line, ximg->d…
XInitImage(ximg);
} else {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.