diff options
author | Paul Gilbert | 2014-03-25 22:06:21 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-25 22:06:21 -0400 |
commit | 7b15d2e379ce6ecfc131db803fbe704caaf8d385 (patch) | |
tree | d178dec4e2e00e14e0eb454dccd974675ecb49cc | |
parent | e9977e81d0c3ab13d934755e37a93f62b78a65cb (diff) | |
download | scummvm-rg350-7b15d2e379ce6ecfc131db803fbe704caaf8d385.tar.gz scummvm-rg350-7b15d2e379ce6ecfc131db803fbe704caaf8d385.tar.bz2 scummvm-rg350-7b15d2e379ce6ecfc131db803fbe704caaf8d385.zip |
MADS: Moved palette translation define into source file
-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; |