diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-28 21:57:41 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2001-12-28 21:57:41 +0000 |
| commit | 25e570865c703094adb5310a05e3787f3949c827 (patch) | |
| tree | 24eb1f839de7d36a2c9f8f187f2e52918d4b3c3c | |
| parent | 6be2be6d436eaae5579c8816d0c0d4cab0c2c7b5 (diff) | |
Use rint() for rounding floating-point coordinates...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1897 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 8 | ||||
| -rw-r--r-- | src/fl_vertex.cxx | 6 |
2 files changed, 7 insertions, 7 deletions
@@ -1,9 +1,9 @@ CHANGES IN FLTK 1.1.0b9 - - Demo cleanup - made sure they all worked with - schemes. - - Fl_Tabs no longer clears the unused area of the - tab bar. + - Now use rint() to round floating-point coordinates. + - Demo cleanup - made sure they all worked with schemes. + - Fl_Tabs no longer clears the unused area of the tab + bar. - Added show(argc, argv) method to Fl_Help_Dialog. - MacOS: implemented cut/copy/paste. - MacOS: improved keyboard handling, fixed keyboard diff --git a/src/fl_vertex.cxx b/src/fl_vertex.cxx index 27b9faf59..fbd80525c 100644 --- a/src/fl_vertex.cxx +++ b/src/fl_vertex.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_vertex.cxx,v 1.5.2.3.2.2 2001/11/27 17:44:08 easysw Exp $" +// "$Id: fl_vertex.cxx,v 1.5.2.3.2.3 2001/12/28 21:57:41 easysw Exp $" // // Portable drawing routines for the Fast Light Tool Kit (FLTK). // @@ -113,7 +113,7 @@ static void fl_transformed_vertex(COORD_T x, COORD_T y) { } void fl_transformed_vertex(double xf, double yf) { - fl_transformed_vertex(COORD_T(xf+.5), COORD_T(yf+.5)); + fl_transformed_vertex(COORD_T(rint(xf)), COORD_T(rint(yf))); } void fl_vertex(double x,double y) { @@ -248,5 +248,5 @@ void fl_circle(double x, double y,double r) { } // -// End of "$Id: fl_vertex.cxx,v 1.5.2.3.2.2 2001/11/27 17:44:08 easysw Exp $". +// End of "$Id: fl_vertex.cxx,v 1.5.2.3.2.3 2001/12/28 21:57:41 easysw Exp $". // |
