From 254c623a992d52dd8de25d34bf93971ba0a9b9c6 Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Fri, 23 Mar 2012 09:32:22 +0000 Subject: [PATCH] + remove vc++ 6.0 work-around --- deps/agg/include/agg_renderer_scanline.h | 29 +----------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/deps/agg/include/agg_renderer_scanline.h b/deps/agg/include/agg_renderer_scanline.h index 6d65056c5..b2082da0e 100644 --- a/deps/agg/include/agg_renderer_scanline.h +++ b/deps/agg/include/agg_renderer_scanline.h @@ -70,34 +70,7 @@ namespace agg sl.reset(ras.min_x(), ras.max_x()); while(ras.sweep_scanline(sl)) { - //render_scanline_aa_solid(sl, ren, ren_color); - - // This code is equivalent to the above call (copy/paste). - // It's just a "manual" optimization for old compilers, - // like Microsoft Visual C++ v6.0 - //------------------------------- - int y = sl.y(); - unsigned num_spans = sl.num_spans(); - typename Scanline::const_iterator span = sl.begin(); - - for(;;) - { - int x = span->x; - if(span->len > 0) - { - ren.blend_solid_hspan(x, y, (unsigned)span->len, - ren_color, - span->covers); - } - else - { - ren.blend_hline(x, y, (unsigned)(x - span->len - 1), - ren_color, - *(span->covers)); - } - if(--num_spans == 0) break; - ++span; - } + render_scanline_aa_solid(sl, ren, ren_color); } } }