+ align text placement to pixel boundary

This commit is contained in:
Artem Pavlenko 2010-09-24 12:55:03 +00:00
parent 4a2d1f49a6
commit 71bfe37601

View File

@ -334,8 +334,8 @@ void agg_renderer<T>::process(shield_symbolizer const& sym,
// check to see if image overlaps anything too, there is only ever 1 placement found for points and verticies
if( text_placement.placements.size() > 0)
{
double x = text_placement.placements[0].starting_x;
double y = text_placement.placements[0].starting_y;
double x = floor(text_placement.placements[0].starting_x);
double y = floor(text_placement.placements[0].starting_y);
int px;
int py;
box2d<double> label_ext;