--- src/aarender.c.orig 2008-03-18 23:55:32.000000000 +0100 +++ src/aarender.c 2008-03-18 23:55:50.000000000 +0100 @@ -94,8 +94,8 @@ gamma = randomval / 2; mval = (c->parameters[c->filltable[255]].p[4]); for (y = y1; y < y2; y++) { - pos = 2 * y * wi; - pos1 = y * aa_scrwidth(c); + pos = 2 * (y * wi + x1); + pos1 = y * aa_scrwidth(c) + x1; esum = 0; for (x = x1; x < x2; x++) { i1 = table[((((int) c->imagebuffer[pos])))];