aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/sprites.h
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-02 21:24:22 -0400
committerPaul Gilbert2014-04-02 21:24:22 -0400
commit3f8ee8fafa0166204a6c0b9ec311aa9fb0aa3c39 (patch)
treea91f4da429e92fdbcf8357229f20c032f284353b /engines/mads/sprites.h
parent041773705be6dd1fb09d71e482f4974247cee61f (diff)
downloadscummvm-rg350-3f8ee8fafa0166204a6c0b9ec311aa9fb0aa3c39.tar.gz
scummvm-rg350-3f8ee8fafa0166204a6c0b9ec311aa9fb0aa3c39.tar.bz2
scummvm-rg350-3f8ee8fafa0166204a6c0b9ec311aa9fb0aa3c39.zip
MADS: Cleanup of UISlots and flag types
Diffstat (limited to 'engines/mads/sprites.h')
-rw-r--r--engines/mads/sprites.h16
1 files changed, 11 insertions, 5 deletions
diff --git a/engines/mads/sprites.h b/engines/mads/sprites.h
index a9b4e97d40..962d8c9e75 100644
--- a/engines/mads/sprites.h
+++ b/engines/mads/sprites.h
@@ -30,9 +30,15 @@
namespace MADS {
-enum SlotType {
- ST_NONE = 0, ST_FOREGROUND = 1, ST_MINUS5 = -5, ST_BACKGROUND = -4,
- ST_MINUS3 = -3, ST_FULL_SCREEN_REFRESH = -2, ST_EXPIRED = -1
+enum SpriteFlags {
+ IMG_STATIC = 0, // Item should remain fixed on the screen
+ IMG_UPDATE = 1, // Item needs to be redrawn
+ IMG_ERASE = -1, // Erase image and remove it
+ IMG_REFRESH = -2, // Full refresh
+ IMG_OVERPRINT = -3, // Interface overprint
+ IMG_DELTA = -4, // Delta change
+ IMG_FULL_UPDATE = -5, // Interface refresh
+ IMG_UPDATE_ONLY = -20 // Update the active screen area only
};
class MADSEngine;
@@ -129,11 +135,11 @@ private:
static MADSEngine *_vm;
friend class SpriteSlots;
public:
- SlotType _SlotType;
+ SpriteFlags _flags;
int _seqIndex;
public:
SpriteSlot();
- SpriteSlot(SlotType type, int seqIndex);
+ SpriteSlot(SpriteFlags type, int seqIndex);
void setup(int dirtyAreaIndex);
bool operator==(const SpriteSlotSubset &other) const;