diff options
author | Jordi Vilalta Prat | 2008-12-22 09:47:13 +0000 |
---|---|---|
committer | Jordi Vilalta Prat | 2008-12-22 09:47:13 +0000 |
commit | 1ccce41c8fde4430671acc835c5f2f7b8caba2fb (patch) | |
tree | 17004fded7a76664a01c1b920538e9b250465105 /graphics/VectorRendererSpec.cpp | |
parent | 5ef6d928b9c007d7ee5efeded1f426d1c7892ab9 (diff) | |
download | scummvm-rg350-1ccce41c8fde4430671acc835c5f2f7b8caba2fb.tar.gz scummvm-rg350-1ccce41c8fde4430671acc835c5f2f7b8caba2fb.tar.bz2 scummvm-rg350-1ccce41c8fde4430671acc835c5f2f7b8caba2fb.zip |
Fix the rendering of stroked tabs
svn-id: r35479
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index 2924e2b1b7..36dfba19a0 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -781,14 +781,14 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: ptr_fill += pitch * real_radius; while (short_h--) { - colorFill(ptr_fill, ptr_fill + Base::_strokeWidth - 1, color); - colorFill(ptr_fill + w - Base::_strokeWidth + 2, ptr_fill + w, color); + colorFill(ptr_fill, ptr_fill + Base::_strokeWidth, color); + colorFill(ptr_fill + w - Base::_strokeWidth + 1, ptr_fill + w + 1, color); ptr_fill += pitch; } if (baseLeft) { sw = 0; - ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1, y1 + h); + ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1, y1 + h + 1); while (sw++ < Base::_strokeWidth) { colorFill(ptr_fill - baseLeft, ptr_fill, color); ptr_fill += pitch; @@ -797,7 +797,7 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: if (baseRight) { sw = 0; - ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1 + w, y1 + h); + ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1 + w, y1 + h + 1); while (sw++ < Base::_strokeWidth) { colorFill(ptr_fill, ptr_fill + baseRight, color); ptr_fill += pitch; |