summaryrefslogtreecommitdiff
path: root/src/px.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/px.h')
-rw-r--r--src/px.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/px.h b/src/px.h
index 1d08bd1..3d0db03 100644
--- a/src/px.h
+++ b/src/px.h
@@ -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. */