From 31a6de2b2751a7c7a60c07ee4f6a05810ab648bb Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Sat, 31 Mar 2018 20:37:48 +0200 Subject: [PATCH] fix formatting --- src/gmastertrack.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gmastertrack.cxx b/src/gmastertrack.cxx index 5e8bb94..a100d7f 100644 --- a/src/gmastertrack.cxx +++ b/src/gmastertrack.cxx @@ -170,8 +170,7 @@ static void gmastertrack_button_callback(Fl_Widget *w, void *data) } else if ( strcmp( w->label(), "Tap" ) == 0 ) { if ( Fl::event_button() == FL_RIGHT_MOUSE ) { - string question = "Enter BPM value (between " + to_string(MIN_TEMPO) + " and " - + to_string(MAX_TEMPO) + "):"; + string question = "Enter BPM value (between " + to_string(MIN_TEMPO) + " and " + to_string(MAX_TEMPO) + "):"; const char* answer = fl_input(question.c_str()); if(answer) { int bpm = atoi(answer); @@ -274,7 +273,7 @@ GMasterTrack::GMasterTrack(int x, int y, int w, int h, const char* l ) : void GMasterTrack::setBpm( int b ) { bpm = b; - tempoDial.value( ( bpm - MIN_TEMPO ) / (float)(MAX_TEMPO-MIN_TEMPO) ); + tempoDial.value( ( bpm - MIN_TEMPO ) / (float)(MAX_TEMPO - MIN_TEMPO) ); std::stringstream s; s << bpm; tempoDial.copy_label( s.str().c_str() );