diff options
author | Bastien Bouclet | 2019-10-07 22:18:27 +0200 |
---|---|---|
committer | Bastien Bouclet | 2019-10-07 22:18:27 +0200 |
commit | eabb81829f29716e949890844029567687626bc8 (patch) | |
tree | 8ece57f84a686f49ac00a3770b56e5089713bc3f /graphics/VectorRendererSpec.cpp | |
parent | 1d764bd787a20ab4b8d6edd79d3bc7db459e3eb0 (diff) | |
download | scummvm-rg350-eabb81829f29716e949890844029567687626bc8.tar.gz scummvm-rg350-eabb81829f29716e949890844029567687626bc8.tar.bz2 scummvm-rg350-eabb81829f29716e949890844029567687626bc8.zip |
GRAPHICS: Fix modern theme tab widgets being 2px too tall
This was noticeable in the graphics tab of the options dialog when
scrolling down. The widgets would be partially drawn on top of the
tabs.
Diffstat (limited to 'graphics/VectorRendererSpec.cpp')
-rw-r--r-- | graphics/VectorRendererSpec.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/graphics/VectorRendererSpec.cpp b/graphics/VectorRendererSpec.cpp index 6b8c6eb693..e60da577b3 100644 --- a/graphics/VectorRendererSpec.cpp +++ b/graphics/VectorRendererSpec.cpp @@ -1457,7 +1457,7 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: PixelType *ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(x1, y1); int real_radius = r; - int short_h = h - r + 2; + int short_h = h - r; int long_h = h; if (fill_m == kFillDisabled) { @@ -1562,7 +1562,7 @@ drawTabAlgClip(int x1, int y1, int w, int h, int r, PixelType color, VectorRende int fill_x = x1, fill_y = y1; int real_radius = r; - int short_h = h - r + 2; + int short_h = h - r; int long_h = h; if (fill_m == kFillDisabled) { @@ -1679,7 +1679,7 @@ drawTabShadow(int x1, int y1, int w, int h, int r) { PixelType *ptr_tr = (PixelType *)Base::_activeSurface->getBasePtr(xstart + width - r, ystart + r); PixelType *ptr_fill = (PixelType *)Base::_activeSurface->getBasePtr(xstart, ystart); - int short_h = height - (2 * r) + 2; + int short_h = height - (2 * r); PixelType color = _format.RGBToColor(0, 0, 0); BE_RESET(); @@ -1743,7 +1743,7 @@ drawTabShadowClip(int x1, int y1, int w, int h, int r) { int tl_x = xstart + r, tl_y = ystart + r; int fill_x = xstart, fill_y = ystart; - int short_h = height - (2 * r) + 2; + int short_h = height - (2 * r); PixelType color = _format.RGBToColor(0, 0, 0); BE_RESET(); @@ -3482,7 +3482,7 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: } } - int short_h = h - r + 2; + int short_h = h - r; ptr_fill += pitch * real_radius; while (short_h--) { @@ -3513,7 +3513,7 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: color1 = color2 = color; int long_h = h; - int short_h = h - real_radius + 2; + int short_h = h - real_radius; x = real_radius; y = 0; T = 0; |