pkgsrc/audio/spiralloops/patches/patch-am

22 lines
679 B
Text

$NetBSD: patch-am,v 1.2 2004/02/15 05:13:53 ben Exp $
--- GUI/Widgets/Fl_Knob.cxx.orig 2001-04-19 13:48:10.000000000 -0700
+++ GUI/Widgets/Fl_Knob.cxx
@@ -4,7 +4,7 @@
#include <FL/fl_draw.H>
#include <math.h>
-Fl_Knob::Fl_Knob(int xx,int yy,int ww,int hh,const char *l=0): Fl_Valuator(xx,yy,ww,hh,l) {
+Fl_Knob::Fl_Knob(int xx,int yy,int ww,int hh,const char *l): Fl_Valuator(xx,yy,ww,hh,l) {
a1 = 35;
a2 = 325;
_type = DOTLIN;
@@ -40,7 +40,7 @@ unsigned char rr,gg,bb;
int dam = damage();
if (dam & FL_DAMAGE_ALL)
{
- int col = parent()->color();
+ int col = color();
fl_color(col);
fl_rectf(ox,oy,side,side);
Fl::get_color((Fl_Color)col,rr,gg,bb);