Skip to content

Commit

Permalink
+ take into account alpha when rendering building frame
Browse files Browse the repository at this point in the history
  (TODO: consider more options - roof fill,??)
  • Loading branch information
artemp committed Jan 2, 2013
1 parent f7ad2f1 commit 8b66128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agg/process_building_symbolizer.cpp
Expand Up @@ -148,7 +148,7 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
agg::conv_stroke<path_type> stroke(path);
stroke.width(scale_factor_);
ras_ptr->add_path(stroke);
ren.color(agg::rgba8(int(r*0.8), int(g*0.8), int(b*0.8), int(255 * sym.get_opacity())));
ren.color(agg::rgba8(int(r*0.8), int(g*0.8), int(b*0.8), int(a * sym.get_opacity())));
agg::render_scanlines(*ras_ptr, sl, ren);
ras_ptr->reset();

Expand Down

0 comments on commit 8b66128

Please sign in to comment.