diff options
Diffstat (limited to 'src/px.h')
-rw-r--r-- | src/px.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -34,6 +34,7 @@ typedef struct { int h; bool flip_x; bool flip_y; + bool center; } PxSprArgs; typedef struct { @@ -94,7 +95,7 @@ void pxLine(int x0, int y0, int x1, int y1, PxCol col); /* Draw sprite. */ #define pxSpr(...) _pxSpr(&(const PxSprArgs){ \ .x=0, .y=0, .ix=0, .iy=0, .w=-1, .h=-1, .flip_x=false, .flip_x=false, \ - ._=0, __VA_ARGS__}) + .center=false, ._=0, __VA_ARGS__}) void _pxSpr(const PxSprArgs *args); /* Bind palette index to new color. */ |