diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-10-18 15:00:37 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2023-10-18 15:00:37 +0200 |
| commit | 27a779b2357fb27ae834e8921323f09fd3288940 (patch) | |
| tree | b3701b4b2adf83fa339920f65082666a2d8a5e5d /src | |
| parent | c27009e52c9a736a73be63a827a45a5c5c0b8bbf (diff) | |
Fix trailing whitespace
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Graphics_Driver.cxx | 8 | ||||
| -rw-r--r-- | src/fl_draw.cxx | 2 |
2 files changed, 5 insertions, 5 deletions
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 |
