Changeset 697
- Timestamp:
- 04/20/08 07:30:10 (9 months ago)
- Files:
-
- 1 modified
-
trunk/src/cairo_renderer.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/cairo_renderer.cpp
r696 r697 280 280 void move_to(double x, double y) 281 281 { 282 #if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 6, 0) 282 283 if (x < -32767.0) x = -32767.0; 283 284 else if (x > 32767.0) x = 32767.0; 284 285 if (y < -32767.0) y = -32767.0; 285 286 else if (y > 32767.0) y = 32767.0; 287 #endif 286 288 287 289 context_->move_to(x, y); … … 291 293 void line_to(double x, double y) 292 294 { 295 #if CAIRO_VERSION < CAIRO_VERSION_ENCODE(1, 6, 0) 293 296 if (x < -32767.0) x = -32767.0; 294 297 else if (x > 32767.0) x = 32767.0; 295 298 if (y < -32767.0) y = -32767.0; 296 299 else if (y > 32767.0) y = 32767.0; 300 #endif 297 301 298 302 context_->line_to(x, y); … … 484 488 #endif 485 489 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 } 490 #if CAIRO_VERSION >= CAIRO_VERSION_ENCODE(1, 6, 0) 491 Envelope<double> bounds = t_.forward(t_.extent()); 492 context_->rectangle(bounds.minx(), bounds.miny(), bounds.maxx(), bounds.maxy()); 493 context_->clip(); 494 #endif 492 495 493 496 boost::optional<Color> bg = m_.background();
