# HG changeset patch # User Matti Hamalainen # Date 1568017338 -10800 # Node ID c8c58147e6e538bac3a7e1cb246682f854b6a5fa # Parent 9f150c0e146702e2ec4e899119ca32e9aa3e7d40 Change separate booleans in DMC64Sprite to a single flags field and define flags in enum. diff -r 9f150c0e1467 -r c8c58147e6e5 tools/lib64gfx.h --- 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