mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 00:22:42 +08:00
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
This commit is contained in:
@@ -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).
|
// 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;
|
int d = w <= h ? w : h;
|
||||||
if (d <= 1) return;
|
if (d <= 1) return;
|
||||||
fl_color((Fl_Color)color);
|
fl_color((Fl_Color)color);
|
||||||
void (*f)(int,int,int,int,double,double) =
|
void (*f)(int,int,int,int,double,double);
|
||||||
(which==FILL) ? fl_pie : fl_arc_i;
|
f = (which==FILL) ? fl_pie : fl_arc_i;
|
||||||
if (which >= CLOSED) {
|
if (which >= CLOSED) {
|
||||||
f(x+w-d, y, d, d, w<=h ? 0 : -90, w<=h ? 180 : 90);
|
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);
|
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 $".
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user