Mercurial > hg > dmlib
changeset 2327:c8c58147e6e5
Change separate booleans in DMC64Sprite to a single flags field and define
flags in enum.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 09 Sep 2019 11:22:18 +0300 |
parents | 9f150c0e1467 |
children | b57517a01960 |
files | tools/lib64gfx.h |
diffstat | 1 files changed, 10 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/lib64gfx.h Mon Sep 09 11:21:41 2019 +0300 +++ b/tools/lib64gfx.h Mon Sep 09 11:22:18 2019 +0300 @@ -175,6 +175,15 @@ }; +// Sprite flags (DMC64Sprite::flags) +enum +{ + D64_SPRF_MC = 0x0001, + D64_SPRF_X_EXPAND = 0x0002, + D64_SPRF_Y_EXPAND = 0x0002, +}; + + typedef struct { char *name; @@ -203,7 +212,7 @@ typedef struct { int xc, yc; // Sprite coordinates (XXX TODO: borders etc.) - BOOL multicolor, xexpand, yexpand; + int flags; // D64_SPRF_* flags int color; // Color int sprnum; // Physical sprite number for priority checking