mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +01:00
NO-OP: whitespace
This commit is contained in:
parent
c0f9710537
commit
151ca86fd6
1 changed files with 379 additions and 379 deletions
|
|
@ -19,16 +19,16 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include "evoral/midi_events.h"
|
||||
#include "ardour/midi_track.h"
|
||||
#include "evoral/midi_events.h"
|
||||
#include <iostream>
|
||||
|
||||
#include "gtkmm2ext/keyboard.h"
|
||||
|
||||
#include "editing.h"
|
||||
#include "piano_roll_header.h"
|
||||
#include "midi_time_axis.h"
|
||||
#include "midi_streamview.h"
|
||||
#include "midi_time_axis.h"
|
||||
#include "piano_roll_header.h"
|
||||
#include "public_editor.h"
|
||||
#include "ui_config.h"
|
||||
|
||||
|
|
@ -294,15 +294,17 @@ PianoRollHeader::on_expose_event (GdkEventExpose* ev)
|
|||
GdkRectangle& rect = ev->area;
|
||||
double font_size;
|
||||
int lowest, highest;
|
||||
Cairo::RefPtr<Cairo::Context> cr = get_window()->create_cairo_context();
|
||||
Cairo::RefPtr<Cairo::LinearGradient> pat = Cairo::LinearGradient::create(0, 0, _black_note_width, 0);
|
||||
double x[9];
|
||||
double y[9];
|
||||
Color bg, tl_shadow, br_shadow;
|
||||
int oct_rel;
|
||||
|
||||
int y1 = max (rect.y, 0);
|
||||
int y2 = min (rect.y + rect.height, (int)floor (_view.contents_height () - 1.0f));
|
||||
|
||||
Cairo::RefPtr<Cairo::Context> cr = get_window ()->create_cairo_context ();
|
||||
Cairo::RefPtr<Cairo::LinearGradient> pat = Cairo::LinearGradient::create (0, 0, _black_note_width, 0);
|
||||
|
||||
//Cairo::TextExtents te;
|
||||
lowest = max (_view.lowest_note (), _view.y_to_note (y2));
|
||||
highest = min (_view.highest_note (), _view.y_to_note (y1));
|
||||
|
|
@ -437,10 +439,8 @@ PianoRollHeader::on_expose_event (GdkEventExpose* ev)
|
|||
|
||||
default:
|
||||
break;
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
/* render the name of which C this is */
|
||||
|
|
@ -469,7 +469,6 @@ PianoRollHeader::on_motion_notify_event (GdkEventMotion* ev)
|
|||
set_note_highlight (note);
|
||||
|
||||
if (_dragging) {
|
||||
|
||||
if (false /*editor().current_mouse_mode() == Editing::MouseRange*/) { //ToDo: fix this. this mode is buggy, and of questionable utility anyway
|
||||
|
||||
/* select note range */
|
||||
|
|
@ -546,7 +545,6 @@ PianoRollHeader::on_button_release_event (GdkEventButton* ev)
|
|||
}
|
||||
|
||||
} else {
|
||||
|
||||
if (_dragging) {
|
||||
remove_modal_grab ();
|
||||
|
||||
|
|
@ -561,7 +559,8 @@ PianoRollHeader::on_button_release_event (GdkEventButton* ev)
|
|||
}
|
||||
|
||||
void
|
||||
PianoRollHeader::set_note_highlight (uint8_t note) {
|
||||
PianoRollHeader::set_note_highlight (uint8_t note)
|
||||
{
|
||||
if (_highlighted_note == note) {
|
||||
return;
|
||||
}
|
||||
|
|
@ -623,8 +622,9 @@ PianoRollHeader::invalidate_note_range(int lowest, int highest)
|
|||
Glib::RefPtr<Gdk::Window> win = get_window ();
|
||||
Gdk::Rectangle rect;
|
||||
|
||||
// the non-rectangular geometry of some of the notes requires more
|
||||
// redraws than the notes that actually changed.
|
||||
/* the non-rectangular geometry of some of the notes requires more
|
||||
* redraws than the notes that actually changed.
|
||||
*/
|
||||
switch (lowest % 12) {
|
||||
case 0:
|
||||
case 5:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue