summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 20:58:23 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 20:58:23 +0000
commite23a5718aee817c6636a38a38977d8b0738b4a0b (patch)
tree93965fbdf5a5bd5747d606eeef2c78a3cf7ae626 /src
parent63c0b655bb486661248f75e548b22d5624d83cb0 (diff)
Call to atan2() needs (float) cast for arguments because HP overloads
atan2() [isn't that a violation of ANSI C/C++???] git-svn-id: file:///fltk/svn/fltk/trunk@313 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Dial.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Dial.cxx b/src/Fl_Dial.cxx
index 1bb47fe90..10ac4b02d 100644
--- a/src/Fl_Dial.cxx
+++ b/src/Fl_Dial.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Dial.cxx,v 1.6 1999/02/16 17:23:55 mike Exp $"
+// "$Id: Fl_Dial.cxx,v 1.7 1999/02/22 20:58:23 mike Exp $"
//
// Circular dial widget for the Fast Light Tool Kit (FLTK).
//
@@ -101,7 +101,7 @@ int Fl_Dial::handle(int event, int x, int y, int w, int h) {
int mx = Fl::event_x()-x-w/2;
int my = Fl::event_y()-y-h/2;
if (!mx && !my) return 1;
- angle = atan2(-my, -mx) + 0.25 * M_PI;
+ angle = atan2((float)-my, (float)-mx) + 0.25 * M_PI;
if (angle<(-0.25*M_PI)) angle += 2.0*M_PI;
val = minimum() + (maximum()-minimum())*angle/(1.5*M_PI);
if (fabs(val-value()) < (maximum()-minimum())/2.0)
@@ -126,5 +126,5 @@ Fl_Dial::Fl_Dial(int x, int y, int w, int h, const char* l)
}
//
-// End of "$Id: Fl_Dial.cxx,v 1.6 1999/02/16 17:23:55 mike Exp $".
+// End of "$Id: Fl_Dial.cxx,v 1.7 1999/02/22 20:58:23 mike Exp $".
//