Speed up redraw while tempo dragging with midi regions (and possibly other redraws)
This commit is contained in:
@@ -1191,10 +1191,9 @@ MidiRegionView::redisplay_model()
|
|||||||
|
|
||||||
if (!empty_when_starting && (cne = find_canvas_note (note)) != 0) {
|
if (!empty_when_starting && (cne = find_canvas_note (note)) != 0) {
|
||||||
|
|
||||||
cne->validate ();
|
|
||||||
update_note (cne);
|
|
||||||
|
|
||||||
if (visible) {
|
if (visible) {
|
||||||
|
cne->validate ();
|
||||||
|
update_note (cne);
|
||||||
cne->show ();
|
cne->show ();
|
||||||
} else {
|
} else {
|
||||||
cne->hide ();
|
cne->hide ();
|
||||||
@@ -3827,6 +3826,10 @@ MidiRegionView::color_handler ()
|
|||||||
void
|
void
|
||||||
MidiRegionView::enable_display (bool yn)
|
MidiRegionView::enable_display (bool yn)
|
||||||
{
|
{
|
||||||
|
if (_enable_display == yn) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
RegionView::enable_display (yn);
|
RegionView::enable_display (yn);
|
||||||
if (yn) {
|
if (yn) {
|
||||||
redisplay_model ();
|
redisplay_model ();
|
||||||
|
|||||||
Reference in New Issue
Block a user