Show
Ignore:
Timestamp:
04/19/08 19:22:03 (9 months ago)
Author:
tom
Message:

Enable clipping for cairo 1.6.0 and later.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/cairo_renderer.cpp

    r693 r695  
    483483                << map.getCurrentExtent() << "\n"; 
    484484#endif 
    485 #ifdef CAIRO_CLIP 
    486       Envelope<double> bounds = t_.forward(t_.extent()); 
    487       context_->rectangle(bounds.minx(), bounds.miny(), bounds.maxx(), bounds.maxy()); 
    488       context_->clip(); 
    489 #endif 
     485 
     486      if (cairo_version() >= CAIRO_VERSION_ENCODE(1, 6, 0)) 
     487      { 
     488         Envelope<double> bounds = t_.forward(t_.extent()); 
     489         context_->rectangle(bounds.minx(), bounds.miny(), bounds.maxx(), bounds.maxy()); 
     490         context_->clip(); 
     491      } 
    490492 
    491493      boost::optional<Color> bg = m_.background();