Mercurial > hg > dmlib
comparison tools/lib64gfx.c @ 1498:9217fcc727e8
Move encoding stub function to better place.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 11 May 2018 07:06:36 +0300 |
parents | ee01fdec1a7b |
children | 32640e1934d5 |
comparison
equal
deleted
inserted
replaced
1497:ee01fdec1a7b | 1498:9217fcc727e8 |
---|---|
751 dmGrowBufFree(&mem); | 751 dmGrowBufFree(&mem); |
752 return res; | 752 return res; |
753 } | 753 } |
754 | 754 |
755 | 755 |
756 static int fmtEncodeStub(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt) | 756 { |
757 { | 757 |
758 (void) buf; | |
759 (void) img; | |
760 (void) fmt; | |
761 | |
762 return dmError(DMERR_NOT_SUPPORTED, | |
763 "Encoding of '%s' format not supported.\n", | |
764 fmt->name); | |
765 } | 758 } |
766 | 759 |
767 | 760 |
768 static Uint8 fmtGetPixelFunPaint2( | 761 static Uint8 fmtGetPixelFunPaint2( |
769 const DMC64Image *img, const int bmoffs, const int scroffs, | 762 const DMC64Image *img, const int bmoffs, const int scroffs, |
850 | 843 |
851 if ((img->bitmap[vbitmap][bmoffs] >> vshift) & 1) | 844 if ((img->bitmap[vbitmap][bmoffs] >> vshift) & 1) |
852 return img->screen[vbank][scroffs] >> 4; | 845 return img->screen[vbank][scroffs] >> 4; |
853 else | 846 else |
854 return img->screen[vbank][scroffs] & 15; | 847 return img->screen[vbank][scroffs] & 15; |
848 } | |
849 | |
850 | |
851 static int fmtEncodeStub(DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt) | |
852 { | |
853 (void) buf; | |
854 (void) img; | |
855 (void) fmt; | |
856 | |
857 return dmError(DMERR_NOT_SUPPORTED, | |
858 "Encoding of '%s' format not supported.\n", | |
859 fmt->name); | |
855 } | 860 } |
856 | 861 |
857 | 862 |
858 // | 863 // |
859 // Array with data for supported formats | 864 // Array with data for supported formats |