diff options
author | Vicent Marti | 2008-07-17 21:58:43 +0000 |
---|---|---|
committer | Vicent Marti | 2008-07-17 21:58:43 +0000 |
commit | 4645e706a8c62fb291efb987dca9fa82394139ee (patch) | |
tree | 8155832408c5b2297f3459a617c9460c27eac248 /graphics/VectorRenderer.cpp | |
parent | 6214815e6eff5b91887e5e1dd4d6463c2000f024 (diff) | |
download | scummvm-rg350-4645e706a8c62fb291efb987dca9fa82394139ee.tar.gz scummvm-rg350-4645e706a8c62fb291efb987dca9fa82394139ee.tar.bz2 scummvm-rg350-4645e706a8c62fb291efb987dca9fa82394139ee.zip |
Rendering pipeline (almost) fixed. This time for real.
svn-id: r33092
Diffstat (limited to 'graphics/VectorRenderer.cpp')
-rw-r--r-- | graphics/VectorRenderer.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/graphics/VectorRenderer.cpp b/graphics/VectorRenderer.cpp index a8915eb0a6..f2ce0e26b8 100644 --- a/graphics/VectorRenderer.cpp +++ b/graphics/VectorRenderer.cpp @@ -487,11 +487,7 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: int real_radius = r; int short_h = h - r + 2; int long_h = h; - PixelType color1, color2; - - if (fill_m == kFillForeground || fill_m == kFillBackground) - color1 = color2 = color; - + if (fill_m == kFillDisabled) { while (sw++ < Base::_strokeWidth) { colorFill(ptr_fill + sp + r, ptr_fill + w + 1 + sp - r, color); @@ -543,6 +539,9 @@ drawTabAlg(int x1, int y1, int w, int h, int r, PixelType color, VectorRenderer: } } else { __BE_RESET(); + + PixelType color1, color2; + color1 = color2 = color; while (x++ < y) { __BE_ALGORITHM(); |