From 4645e706a8c62fb291efb987dca9fa82394139ee Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Thu, 17 Jul 2008 21:58:43 +0000 Subject: Rendering pipeline (almost) fixed. This time for real. svn-id: r33092 --- graphics/VectorRenderer.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'graphics/VectorRenderer.cpp') 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(); -- cgit v1.2.3