summaryrefslogtreecommitdiff
path: root/src/fl_round_box.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 21:01:59 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>1999-02-22 21:01:59 +0000
commit767cad1311e99e1d926fa63969058bc356b936d2 (patch)
treec17a4452c7fc35dd3cdb2f9b00a7fe0431c599e4 /src/fl_round_box.cxx
parent28d2778032b2054f3bbb5f6b8c50c5b3f115b506 (diff)
Workaround for VC++ 4.0 bug - can't initialize a pointer to a function
in the declaration... git-svn-id: file:///fltk/svn/fltk/trunk@315 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/fl_round_box.cxx')
-rw-r--r--src/fl_round_box.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fl_round_box.cxx b/src/fl_round_box.cxx
index b24b121d1..ee787360e 100644
--- a/src/fl_round_box.cxx
+++ b/src/fl_round_box.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: fl_round_box.cxx,v 1.5 1999/01/07 19:17:41 mike Exp $"
+// "$Id: fl_round_box.cxx,v 1.6 1999/02/22 21:01:59 mike Exp $"
//
// Round box drawing routines for the Fast Light Tool Kit (FLTK).
//
@@ -50,8 +50,8 @@ static void draw(int which, int x,int y,int w,int h, int inset, uchar color)
int d = w <= h ? w : h;
if (d <= 1) return;
fl_color((Fl_Color)color);
- void (*f)(int,int,int,int,double,double) =
- (which==FILL) ? fl_pie : fl_arc_i;
+ void (*f)(int,int,int,int,double,double);
+ f = (which==FILL) ? fl_pie : fl_arc_i;
if (which >= CLOSED) {
f(x+w-d, y, d, d, w<=h ? 0 : -90, w<=h ? 180 : 90);
f(x, y+h-d, d, d, w<=h ? 180 : 90, w<=h ? 360 : 270);
@@ -116,5 +116,5 @@ Fl_Boxtype define_FL_ROUND_UP_BOX() {
}
//
-// End of "$Id: fl_round_box.cxx,v 1.5 1999/01/07 19:17:41 mike Exp $".
+// End of "$Id: fl_round_box.cxx,v 1.6 1999/02/22 21:01:59 mike Exp $".
//