Mercurial > hg > dmlib
changeset 901:f532262f90b1
Actually fix commit 16aa5955dfb5.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 23 Feb 2015 20:18:34 +0200 |
parents | df2a9c635175 |
children | c6c480e8e1c8 |
files | src/lib64gfx.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib64gfx.c Mon Feb 23 19:57:28 2015 +0200 +++ b/src/lib64gfx.c Mon Feb 23 20:18:34 2015 +0200 @@ -753,8 +753,9 @@ for (xc = 0; xc < dst->width / wdivisor; xc++) { - const int scroffs = scroffsy + xc; - const int bmoffs = bmoffsy + (xc * 8) + yb; + const int x = xc / 4; + const int scroffs = scroffsy + x; + const int bmoffs = bmoffsy + (x * 8) + yb; const int v = 6 - ((xc * 2) & 6); Uint8 c;