Mercurial > hg > dmlib
changeset 857:16aa5955dfb5
Fix c64 multicolor bitmap conversion for !doubleMC case.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 21 Nov 2014 17:36:15 +0200 |
parents | 415cc781e127 |
children | e7019bd83cca |
files | src/lib64gfx.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib64gfx.c Fri Nov 21 16:57:08 2014 +0200 +++ b/src/lib64gfx.c Fri Nov 21 17:36:15 2014 +0200 @@ -749,15 +749,12 @@ else { // Multicolor variants - const int - wdivisor = doubleMC ? 2 : 1, - divisor = doubleMC ? 4 : 8; + const int wdivisor = doubleMC ? 2 : 1; for (xc = 0; xc < dst->width / wdivisor; xc++) { - const int x = xc / divisor; - const int scroffs = scroffsy + x; - const int bmoffs = bmoffsy + (x * 8) + yb; + const int scroffs = scroffsy + xc; + const int bmoffs = bmoffsy + (xc * 8) + yb; const int v = 6 - ((xc * 2) & 6); Uint8 c;