mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
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
This commit is contained in:
parent
ebadae4c96
commit
adfa5978d3
1 changed files with 5 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue