diff options
author | Alexander Tkachev | 2016-06-22 17:27:32 +0600 |
---|---|---|
committer | Eugene Sandulenko | 2016-07-03 12:17:26 +0200 |
commit | 425d963bd3c927e529efdfed817960dec8de4552 (patch) | |
tree | b8fbab0b0c31609170e3a25ef1a8d7739e5ce2c3 /graphics/VectorRendererSpec.cpp | |
parent | b946ef8598b96631057beffddbf35b627fa25b8d (diff) | |
download | scummvm-rg350-425d963bd3c927e529efdfed817960dec8de4552.tar.gz scummvm-rg350-425d963bd3c927e529efdfed817960dec8de4552.tar.bz2 scummvm-rg350-425d963bd3c927e529efdfed817960dec8de4552.zip |
GUI: Fix ThemeItemTextData's dirty rectangle
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index 8a471d522e..6281de7f63 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -2382,18 +2382,18 @@ drawRoundedSquareShadow(int x1, int y1, int r, int w, int h, int offset) { if (y + ystart < _clippingArea.top || y + ystart > _clippingArea.bottom) continue; if (((1 << x) & hb) == 0) { - blendFillClip(xstart + r + x, ptr_tl - y - px, ptr_tr + y - px, color, (uint8)alpha); + blendFill(ptr_tl - y - px, ptr_tr + y - px, color, (uint8)alpha); // Will create a dark line of pixles if left out if (hb > 0) { - blendFillClip(x, ptr_bl - y + px, ptr_br + y + px, color, (uint8)alpha); + blendFill(ptr_bl - y + px, ptr_br + y + px, color, (uint8)alpha); } hb |= (1 << x); } if (((1 << y) & hb) == 0) { - blendFillClip(x, ptr_tl - x - py, ptr_tr + x - py, color, (uint8)alpha); - blendFillClip(x, ptr_bl - x + py, ptr_br + x + py, color, (uint8)alpha); + blendFill(ptr_tl - x - py, ptr_tr + x - py, color, (uint8)alpha); + blendFill(ptr_bl - x + py, ptr_br + x + py, color, (uint8)alpha); hb |= (1 << y); } } @@ -2402,7 +2402,7 @@ drawRoundedSquareShadow(int x1, int y1, int r, int w, int h, int offset) { int realy = ystart; while (short_h--) { if (realy >= _clippingArea.top && realy <= _clippingArea.bottom) - blendFillClip(xstart+x, ptr_fill, ptr_fill + width + 1, color, (uint8)alpha); + blendFill(ptr_fill, ptr_fill + width + 1, color, (uint8)alpha); ptr_fill += pitch; ++realy; } |