diff options
author | John Anderson <ardour@semiosix.com> | 2007-09-09 20:19:07 +0000 |
---|---|---|
committer | John Anderson <ardour@semiosix.com> | 2007-09-09 20:19:07 +0000 |
commit | adfa5978d30f823e9cff0ae7bd555d734be55d18 (patch) | |
tree | 9749a8080884dd4c0418919a91412f9aad325360 /libs | |
parent | ebadae4c96f84af4cb7c51eab006e0bb1778aa7c (diff) |
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
Diffstat (limited to 'libs')
-rw-r--r-- | libs/surfaces/mackie/mackie_midi_builder.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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; |