Mercurial > hg > dmlib
comparison lib64gfx.c @ 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 |
comparison
equal
deleted
inserted
replaced
524:78edb9710ab7 | 525:b41f20507fe3 |
---|---|
520 const int b = img->bitmap[0][bmoffsy + (x * 8) + yb]; | 520 const int b = img->bitmap[0][bmoffsy + (x * 8) + yb]; |
521 const int v = 7 - (xc & 7); | 521 const int v = 7 - (xc & 7); |
522 Uint8 c; | 522 Uint8 c; |
523 | 523 |
524 if ((b >> v) & 1) | 524 if ((b >> v) & 1) |
525 c = img->screen[0][scroffs] >> 4; | |
526 else | |
525 c = img->screen[0][scroffs] & 15; | 527 c = img->screen[0][scroffs] & 15; |
526 else | |
527 c = img->screen[0][scroffs] >> 4; | |
528 | 528 |
529 *d++ = c; | 529 *d++ = c; |
530 } | 530 } |
531 | 531 |
532 dp += screen->pitch; | 532 dp += screen->pitch; |