From: John Anderson Date: Sun, 9 Sep 2007 20:19:07 +0000 (+0000) Subject: pad out lcd sdisplay strings to 6 chars with spaces to overwrite previous track name X-Git-Tag: 2.8.16~1982 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=adfa5978d30f823e9cff0ae7bd555d734be55d18;p=ardour.git pad out lcd sdisplay strings to 6 chars with spaces to overwrite previous track name git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2442 d708f5d6-7413-0410-9779-e7cbd77b26cf --- diff --git a/libs/surfaces/mackie/mackie_midi_builder.cc b/libs/surfaces/mackie/mackie_midi_builder.cc index 1ef2853114..a1040ae111 100644 --- a/libs/surfaces/mackie/mackie_midi_builder.cc +++ b/libs/surfaces/mackie/mackie_midi_builder.cc @@ -208,17 +208,17 @@ MidiByteArray MackieMidiBuilder::strip_display( MackiePort & port, const Strip & retval << 0x12; // offset (0 to 0x37 first line, 0x38 to 0x6f for second line ) retval << ( strip.index() * 7 + ( line_number * 0x38 ) ); + // ascii data to display retval << line; + // pad with " " out to 6 chars + for ( int i = line.length(); i < 6; ++i ) retval << ' '; + // column spacer, unless it's the right-hand column - if ( strip.index() < 7 ) - { - retval << ' '; - } + if ( strip.index() < 7 ) retval << ' '; // sysex trailer retval << MIDI::eox; - #ifdef DEBUG cout << "MackieMidiBuilder::strip_display midi: " << retval << endl;