Mercurial > hg > dmlib
changeset 525:b41f20507fe3
Fix hires bitmap conversion to DMImage, the screen colors per bit state were
reversed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 22 Nov 2012 01:07:20 +0200 |
parents | 78edb9710ab7 |
children | f7df57cafdd9 |
files | lib64gfx.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lib64gfx.c Wed Nov 21 23:25:13 2012 +0200 +++ b/lib64gfx.c Thu Nov 22 01:07:20 2012 +0200 @@ -522,9 +522,9 @@ Uint8 c; if ((b >> v) & 1) - c = img->screen[0][scroffs] & 15; + c = img->screen[0][scroffs] >> 4; else - c = img->screen[0][scroffs] >> 4; + c = img->screen[0][scroffs] & 15; *d++ = c; }