diff options
-rw-r--r-- | engines/mads/palette.cpp | 2 | ||||
-rw-r--r-- | engines/mads/palette.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp index 94ce52e88b..311bd633e1 100644 --- a/engines/mads/palette.cpp +++ b/engines/mads/palette.cpp @@ -29,6 +29,8 @@ namespace MADS { +#define VGA_COLOR_TRANS(x) ((x) * 255 / 63) + void RGB6::load(Common::SeekableReadStream *f) { r = VGA_COLOR_TRANS(f->readByte()); g = VGA_COLOR_TRANS(f->readByte()); diff --git a/engines/mads/palette.h b/engines/mads/palette.h index 0f04230a81..ae29d181ec 100644 --- a/engines/mads/palette.h +++ b/engines/mads/palette.h @@ -32,8 +32,6 @@ class MADSEngine; #define PALETTE_USAGE_COUNT 4 -#define VGA_COLOR_TRANS(x) ((x) * 255 / 63) - struct RGB4 { byte r; byte g; |