Mercurial > hg > dmlib
changeset 1766:13e5c212eb2b
Clean up fmtGetPixelCrestHIFLIorCDHM().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 12 Jun 2018 13:17:50 +0300 |
parents | cc7b5121c40b |
children | b287ec82f734 |
files | tools/lib64fmts.c |
diffstat | 1 files changed, 1 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64fmts.c Tue Jun 12 12:57:45 2018 +0300 +++ b/tools/lib64fmts.c Tue Jun 12 13:17:50 2018 +0300 @@ -735,13 +735,8 @@ const DMC64Image *img, const int bmoffs, const int scroffs, const int shift, const int bitmap, const int rasterX, const int rasterY) { - const int vbank = rasterY & 7; (void) rasterX; - - if ((img->bitmap[bitmap].data[bmoffs] >> shift) & 1) - return img->screen[vbank].data[scroffs] >> 4; - else - return img->screen[vbank].data[scroffs] & 15; + return dmC64GetGenericSCPixel(img, bmoffs, scroffs, shift, rasterY & 7, bitmap, 0); }