mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 16:24:57 +01:00
fix meter background redraw issue #5601
This commit is contained in:
parent
0a68e7bee7
commit
cd35040535
1 changed files with 3 additions and 6 deletions
|
|
@ -476,6 +476,7 @@ FastMeter::on_size_allocate (Gtk::Allocation &alloc)
|
||||||
} else {
|
} else {
|
||||||
horizontal_size_allocate (alloc);
|
horizontal_size_allocate (alloc);
|
||||||
}
|
}
|
||||||
|
queue_draw ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -810,7 +811,6 @@ FastMeter::queue_vertical_redraw (const Glib::RefPtr<Gdk::Window>& win, float ol
|
||||||
void
|
void
|
||||||
FastMeter::queue_horizontal_redraw (const Glib::RefPtr<Gdk::Window>& win, float old_level)
|
FastMeter::queue_horizontal_redraw (const Glib::RefPtr<Gdk::Window>& win, float old_level)
|
||||||
{
|
{
|
||||||
#if 1
|
|
||||||
GdkRectangle rect;
|
GdkRectangle rect;
|
||||||
|
|
||||||
gint new_right = (gint) floor (pixwidth * current_level);
|
gint new_right = (gint) floor (pixwidth * current_level);
|
||||||
|
|
@ -877,9 +877,6 @@ FastMeter::queue_horizontal_redraw (const Glib::RefPtr<Gdk::Window>& win, float
|
||||||
gdk_region_destroy(region);
|
gdk_region_destroy(region);
|
||||||
region = 0;
|
region = 0;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
queue_draw ();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
@ -890,9 +887,9 @@ FastMeter::set_highlight (bool onoff)
|
||||||
}
|
}
|
||||||
highlight = onoff;
|
highlight = onoff;
|
||||||
if (orientation == Vertical) {
|
if (orientation == Vertical) {
|
||||||
bgpattern = request_vertical_background (request_width, request_height, highlight ? _bgh : _bgc, highlight);
|
bgpattern = request_vertical_background (pixwidth + 2, pixheight + 2, highlight ? _bgh : _bgc, highlight);
|
||||||
} else {
|
} else {
|
||||||
bgpattern = request_horizontal_background (request_width, request_height, highlight ? _bgh : _bgc, highlight);
|
bgpattern = request_horizontal_background (pixwidth + 2, pixheight + 2, highlight ? _bgh : _bgc, highlight);
|
||||||
}
|
}
|
||||||
queue_draw ();
|
queue_draw ();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue