summaryrefslogtreecommitdiff
path: root/audio/spiralsynth/patches/patch-ah
blob: e4c74e53f166cc6a5644385eadb2cfd26d1ecf33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$NetBSD: patch-ah,v 1.2 2004/02/15 06:00:57 ben Exp $

--- GUI/Widgets/Fl_Knob.cxx.orig	2000-09-11 12:52:03.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);