Mercurial > hg > dmlib
diff tools/lib64gfx.h @ 2343:94a653883a32
Change Uint8 pointer in getPixel functions to DMC64ScanLine pointer in
preparation for future changes related to sprites on scanlines.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 25 Sep 2019 12:11:35 +0300 |
parents | a5c68b0d6e10 |
children | fe025c461760 |
line wrap: on
line diff
--- a/tools/lib64gfx.h Wed Sep 25 11:45:21 2019 +0300 +++ b/tools/lib64gfx.h Wed Sep 25 12:11:35 2019 +0300 @@ -250,7 +250,13 @@ } DMC64Image; -typedef int (*DMC64GetPixelFunc)(Uint8 *col, +typedef struct +{ + Uint8 *col; +} DMC64ScanLine; + + +typedef int (*DMC64GetPixelFunc)(DMC64ScanLine *scan, const DMC64Image *img, const int rasterX, const int rasterY);