diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2003-07-18 05:53:21 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2003-07-18 05:53:21 +0000 |
| commit | 4042047358c4a9ebb8f61007ec27c7f66fd0a79e (patch) | |
| tree | 586cc59db657251c68e9bb3b32dbdac132c65b2b /src/Fl_Dial.cxx | |
| parent | 91721061895a16fea93a866061e632c8a6556088 (diff) | |
updated documentation and Fl_Dial. STR #101, 94, 99
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3049 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Dial.cxx')
| -rw-r--r-- | src/Fl_Dial.cxx | 8 |
1 files changed, 4 insertions, 4 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 $". // |
