freebsd-ports/comms/xmorse/files/patch-Bargraph.cxx
John Marino 5d2bf00922 comms/xmorse: Fix build on F10+, support stage
PR:		ports/185398
Submitted by:	Stephan Hurd
Fixed by:	marino@
2014-01-25 09:28:51 +00:00

12 lines
576 B
C++

--- Bargraph.cxx.orig 2004-08-25 17:18:01.000000000 -0700
+++ Bargraph.cxx 2014-01-01 10:26:23.000000000 -0800
@@ -82,7 +82,7 @@
if (child(i)->visible()) nd++;
int dx = w()/nd; // Slider horizontal "period"
int width = dx*nd - gap; // Width of slider array
- int x0 = w()-width >> 1; // Inset to 1st slider
+ int x0 = (w()-width) >> 1; // Inset to 1st slider
width = dx-gap; // Width of individual Slider
for (int i = 0; i < children(); i++) { // Loop to reposition sliders
Fl_Slider* s = (Fl_Slider*) child(i); // Pointer to this Slider