diff options
| -rw-r--r-- | FL/fl_draw.H | 2 | ||||
| -rw-r--r-- | src/Fl_Graphics_Driver.cxx | 8 | ||||
| -rw-r--r-- | src/fl_draw.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/FL/fl_draw.H b/FL/fl_draw.H index 65849330d..4095aab34 100644 --- a/FL/fl_draw.H +++ b/FL/fl_draw.H @@ -339,7 +339,7 @@ inline void fl_rounded_rectf(int x, int y, int w, int h, int r) { fl_graphics_driver->rounded_rectf(x, y, w, h, r); } -/** Color with passed color a rectangle that exactly fills the given bounding box. +/** Color with passed color a rectangle that exactly fills the given bounding box. \warning The current color is changed to \p c upon return. */ inline void fl_rectf(int x, int y, int w, int h, Fl_Color c) { diff --git a/src/Fl_Graphics_Driver.cxx b/src/Fl_Graphics_Driver.cxx index 9b230fc00..4ef37e33f 100644 --- a/src/Fl_Graphics_Driver.cxx +++ b/src/Fl_Graphics_Driver.cxx @@ -948,28 +948,28 @@ void Fl_Scalable_Graphics_Driver::draw_circle(int x0, int y0, int d, Fl_Color c) // make circles nice on scaled display float s = scale(); int scaled_d = (s > 1.0) ? (int)(d * s) : d; - + // draw the circle switch (scaled_d) { // Larger circles draw fine... default: pie(x0, y0, d, d, 0.0, 360.0); break; - + // Small circles don't draw well on many systems... case 6: rectf(x0 + 2, y0, d - 4, d); rectf(x0 + 1, y0 + 1, d - 2, d - 2); rectf(x0, y0 + 2, d, d - 4); break; - + case 5: case 4: case 3: rectf(x0 + 1, y0, d - 2, d); rectf(x0, y0 + 1, d, d - 2); break; - + case 2: case 1: rectf(x0, y0, d, d); diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index 9974c8217..bfd1c67fd 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -595,7 +595,7 @@ void fl_draw_check(Fl_Rect bb, Fl_Color col) { Draw a potentially small, filled circle using a given color. This function draws using \p color a filled circle bounded by rectangle <tt>(x, y, d, d)</tt>. - + This function is the same as <tt>fl_pie(x, y, d, d, 0, 360)</tt> except with some systems that don't draw small circles well. In that situation, the circle diameter \p d is converted from FLTK units to pixels and this function approximates a filled circle by drawing several |
