Fix trailing whitespace

This commit is contained in:
Albrecht Schlosser
2023-10-18 15:00:37 +02:00
parent c27009e52c
commit 27a779b235
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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) {
+4 -4
View File
@@ -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);
+1 -1
View File
@@ -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