diff options
author | Colin Snover | 2016-07-26 18:54:22 -0500 |
---|---|---|
committer | Colin Snover | 2016-07-27 08:50:13 -0500 |
commit | ce0f1b9c33a11c7cdc124fa68aab9febc5152992 (patch) | |
tree | 46d748f3d4ca19f394fdd69e6fd36f27a0c31a80 /engines | |
parent | 631d22c4ac0796dee830d6e8738e41abb6cbbbd7 (diff) | |
download | scummvm-rg350-ce0f1b9c33a11c7cdc124fa68aab9febc5152992.tar.gz scummvm-rg350-ce0f1b9c33a11c7cdc124fa68aab9febc5152992.tar.bz2 scummvm-rg350-ce0f1b9c33a11c7cdc124fa68aab9febc5152992.zip |
SCI32: Give default skip color a name
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 2 | ||||
-rw-r--r-- | engines/sci/graphics/text32.h | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp index 74eb1629d0..7773b9f4e1 100644 --- a/engines/sci/graphics/paint32.cpp +++ b/engines/sci/graphics/paint32.cpp @@ -117,7 +117,7 @@ void GfxPaint32::plotter(int x, int y, int color, void *data) { } BitmapResource GfxPaint32::makeLineBitmap(const Common::Point &startPoint, const Common::Point &endPoint, const int16 priority, const uint8 color, const LineStyle style, uint16 pattern, uint8 thickness, Common::Rect &outRect) { - const uint8 skipColor = color != 250 ? 250 : 0; + const uint8 skipColor = color != kDefaultSkipColor ? kDefaultSkipColor : 0; // Thickness is expected to be 2n+1 thickness = ((MAX((uint8)1, thickness) - 1) | 1); diff --git a/engines/sci/graphics/text32.h b/engines/sci/graphics/text32.h index a61760dd87..f57433f42d 100644 --- a/engines/sci/graphics/text32.h +++ b/engines/sci/graphics/text32.h @@ -46,6 +46,10 @@ enum BitmapFlags { kBitmapRemap = 2 }; +enum { + kDefaultSkipColor = 250 +}; + #define BITMAP_PROPERTY(size, property, offset)\ inline uint##size get##property() const {\ return READ_SCI11ENDIAN_UINT##size(_bitmap + (offset));\ |