diff options
author | Gregory Montoir | 2003-11-26 20:41:54 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-11-26 20:41:54 +0000 |
commit | ddc2e736fb02438ee31ea55177f154114bd59882 (patch) | |
tree | 0bda91e21208e3d497bebdc68c4cf805f8c0da0a | |
parent | 871c4f8342ed4063a18a5ed4cb1f2e8b78b9dee2 (diff) | |
download | scummvm-rg350-ddc2e736fb02438ee31ea55177f154114bd59882.tar.gz scummvm-rg350-ddc2e736fb02438ee31ea55177f154114bd59882.tar.bz2 scummvm-rg350-ddc2e736fb02438ee31ea55177f154114bd59882.zip |
use enum instead of define (purely cosmetic)
svn-id: r11374
-rw-r--r-- | queen/graphics.h | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/queen/graphics.h b/queen/graphics.h index b0e33199ec..5ac6331829 100644 --- a/queen/graphics.h +++ b/queen/graphics.h @@ -30,13 +30,6 @@ namespace Queen { -#define MAX_BANK_SIZE 110 -#define MAX_FRAMES_NUMBER 256 -#define MAX_BANKS_NUMBER 18 -#define MAX_BOBS_NUMBER 64 - - - struct BobFrame { uint16 width, height; uint16 xhotspot, yhotspot; @@ -193,15 +186,19 @@ public: void update(uint16 room); - -private: - enum { - MAX_STRING_LENGTH = 255, - MAX_STRING_SIZE = (MAX_STRING_LENGTH + 1), + MAX_BANK_SIZE = 110, + MAX_FRAMES_NUMBER = 256, + MAX_BANKS_NUMBER = 18, + MAX_BOBS_NUMBER = 64, + MAX_STRING_LENGTH = 255, + MAX_STRING_SIZE = (MAX_STRING_LENGTH + 1), BOB_SHRINK_BUF_SIZE = 60000 }; + +private: + struct PackedBank { uint32 indexes[MAX_BANK_SIZE]; uint8 *data; |