summaryrefslogtreecommitdiff
path: root/audio/spiralloops/patches/patch-ao
blob: 540fe2da57adb0b10a6349c02dce92ffa9b10fa2 (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-ao,v 1.3 2004/02/15 06:09:45 ben Exp $

--- GUI/Widgets/Fl_LED_Button.cxx.orig	2001-04-19 13:48:11.000000000 -0700
+++ GUI/Widgets/Fl_LED_Button.cxx
@@ -3,7 +3,7 @@
 #include "Fl_LED_Button.H"
 #include <FL/fl_draw.H>
 
-Fl_LED_Button::Fl_LED_Button(int x, int y, int w, int h, const char* l=0):Fl_Light_Button(x,y,w,h,l) {
+Fl_LED_Button::Fl_LED_Button(int x, int y, int w, int h, const char* l):Fl_Light_Button(x,y,w,h,l) {
   box(FL_NO_BOX);
 	down_box(FL_ROUND_DOWN_BOX);
 	selection_color(FL_RED);
@@ -25,7 +25,7 @@ void Fl_LED_Button::draw() {
 	int y1 = y()+d+3;
 	int ww = W-2*d-6;
 	int hh = W-2*d-6;
-	Fl::get_color(parent()->color(),r,g,b);
+	Fl::get_color(color(),r,g,b);
 	modulate(-90,r,g,b);
 	fl_pie(x1-1,y1-1,ww+2,hh+2,0,360);
 	Fl::get_color((Fl_Color)selection_color(),r,g,b);