diff options
author | Colin Snover | 2017-01-12 10:55:13 -0600 |
---|---|---|
committer | Colin Snover | 2017-01-12 13:14:03 -0600 |
commit | 54e94c572aeb58e160537e2145c0fff44e862be3 (patch) | |
tree | 94cd9c1ddc9d0da233bfaf9b86f02a61c8483bb1 /engines/sci/graphics/paint32.cpp | |
parent | d5f0d1fdb26caea8d734371a539be9ed5764a899 (diff) | |
download | scummvm-rg350-54e94c572aeb58e160537e2145c0fff44e862be3.tar.gz scummvm-rg350-54e94c572aeb58e160537e2145c0fff44e862be3.tar.bz2 scummvm-rg350-54e94c572aeb58e160537e2145c0fff44e862be3.zip |
SCI32: Add workarounds, transitions, fixes for PQ4CD
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp index bf7c73623e..8a63365f03 100644 --- a/engines/sci/graphics/paint32.cpp +++ b/engines/sci/graphics/paint32.cpp @@ -121,7 +121,7 @@ void GfxPaint32::plotter(int x, int y, int color, void *data) { reg_t 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 != kDefaultSkipColor ? kDefaultSkipColor : 0; - // Line thickness is expected to be 2 * thickness + 1 + // Line thickness is expected to be 2n + 1 thickness = (MAX<uint8>(1, thickness) - 1) | 1; const uint8 halfThickness = thickness >> 1; @@ -130,8 +130,8 @@ reg_t GfxPaint32::makeLineBitmap(const Common::Point &startPoint, const Common:: outRect.left = MIN<int16>(startPoint.x, endPoint.x); outRect.top = MIN<int16>(startPoint.y, endPoint.y); - outRect.right = MAX<int16>(startPoint.x, endPoint.x) + 1 + 1; // rect lower edge + thickness offset - outRect.bottom = MAX<int16>(startPoint.y, endPoint.y) + 1 + 1; // rect lower edge + thickness offset + outRect.right = MAX<int16>(startPoint.x, endPoint.x) + 1; + outRect.bottom = MAX<int16>(startPoint.y, endPoint.y) + 1; outRect.grow(halfThickness); outRect.clip(Common::Rect(scriptWidth, scriptHeight)); |