diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Dial.cxx | 8 | ||||
| -rw-r--r-- | src/fl_draw.cxx | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/Fl_Dial.cxx b/src/Fl_Dial.cxx index 07d973413..24a8cb93d 100644 --- a/src/Fl_Dial.cxx +++ b/src/Fl_Dial.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Dial.cxx,v 1.12.2.3.2.5 2003/01/30 21:41:39 easysw Exp $" +// "$Id: Fl_Dial.cxx,v 1.12.2.3.2.6 2003/07/18 05:53:21 matthiaswm Exp $" // // Circular dial widget for the Fast Light Tool Kit (FLTK). // @@ -93,8 +93,8 @@ int Fl_Dial::handle(int event, int X, int Y, int W, int H) { case FL_PUSH: handle_push(); case FL_DRAG: { - int mx = Fl::event_x()-X-W/2; - int my = Fl::event_y()-Y-H/2; + int mx = (Fl::event_x()-X-W/2)*H; + int my = (Fl::event_y()-Y-H/2)*W; if (!mx && !my) return 1; double angle = 270-atan2((float)-my, (float)mx)*180/M_PI; double oldangle = (a2-a1)*(value()-minimum())/(maximum()-minimum()) + a1; @@ -134,5 +134,5 @@ Fl_Dial::Fl_Dial(int X, int Y, int W, int H, const char* l) } // -// End of "$Id: Fl_Dial.cxx,v 1.12.2.3.2.5 2003/01/30 21:41:39 easysw Exp $". +// End of "$Id: Fl_Dial.cxx,v 1.12.2.3.2.6 2003/07/18 05:53:21 matthiaswm Exp $". // diff --git a/src/fl_draw.cxx b/src/fl_draw.cxx index 3ecddec8f..54e82074a 100644 --- a/src/fl_draw.cxx +++ b/src/fl_draw.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_draw.cxx,v 1.6.2.4.2.14 2003/06/15 04:13:17 easysw Exp $" +// "$Id: fl_draw.cxx,v 1.6.2.4.2.15 2003/07/18 05:53:21 matthiaswm Exp $" // // Label drawing code for the Fast Light Tool Kit (FLTK). // @@ -44,7 +44,7 @@ char fl_draw_shortcut; // set by fl_labeltypes.cxx static char* underline_at; // Copy p to buf, replacing unprintable characters with ^X and \nnn -// Stop at a newline of if MAXBUF characters written to buffer. +// Stop at a newline or if MAXBUF characters written to buffer. // Also word-wrap if width exceeds maxw. // Returns a pointer to the start of the next line of caharcters. // Sets n to the number of characters put into the buffer. @@ -325,5 +325,5 @@ void fl_measure(const char* str, int& w, int& h, int draw_symbols) { } // -// End of "$Id: fl_draw.cxx,v 1.6.2.4.2.14 2003/06/15 04:13:17 easysw Exp $". +// End of "$Id: fl_draw.cxx,v 1.6.2.4.2.15 2003/07/18 05:53:21 matthiaswm Exp $". // |
