Fix for issue #511: allow fl_circle() even without calls to fl_begin/end_loop/polygon().
This commit is contained in:
parent
cae2b2883b
commit
7fa677f93e
@ -79,6 +79,7 @@ Fl_Cairo_Graphics_Driver::Fl_Cairo_Graphics_Driver() : Fl_Graphics_Driver() {
|
||||
angle = 0;
|
||||
left_margin = top_margin = 0;
|
||||
needs_commit_tag_ = NULL;
|
||||
shape_ = NONE;
|
||||
}
|
||||
|
||||
Fl_Cairo_Graphics_Driver::~Fl_Cairo_Graphics_Driver() {
|
||||
@ -454,6 +455,7 @@ void Fl_Cairo_Graphics_Driver::circle(double x, double y, double r){
|
||||
cairo_save(cairo_);
|
||||
concat();
|
||||
cairo_arc(cairo_, x, y, r, 0, 2*M_PI);
|
||||
cairo_stroke(cairo_);
|
||||
reconcat();
|
||||
cairo_restore(cairo_);
|
||||
} else {
|
||||
|
||||
@ -149,6 +149,7 @@ Fl_PostScript_Graphics_Driver::Fl_PostScript_Graphics_Driver(void)
|
||||
scale_x = scale_y = 1.;
|
||||
bg_r = bg_g = bg_b = 255;
|
||||
clip_ = NULL;
|
||||
shape_ = NONE;
|
||||
}
|
||||
|
||||
/** \brief The destructor. */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user