mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
fix rendering of meter metrics w/o types
For example the initial meter widget in the file-import dialog.
This commit is contained in:
parent
f421473f7c
commit
c5ded1dbeb
1 changed files with 3 additions and 3 deletions
|
|
@ -52,8 +52,8 @@ meter_render_ticks (Gtk::Widget& w, vector<ARDOUR::DataType> types)
|
||||||
bool background;
|
bool background;
|
||||||
gint width, height;
|
gint width, height;
|
||||||
win->get_size (width, height);
|
win->get_size (width, height);
|
||||||
background =
|
background = types.size() == 0
|
||||||
w.get_name().substr(w.get_name().length() - 4) == "Left"
|
|| w.get_name().substr(w.get_name().length() - 4) == "Left"
|
||||||
|| w.get_name().substr(w.get_name().length() - 5) == "Right";
|
|| w.get_name().substr(w.get_name().length() - 5) == "Right";
|
||||||
|
|
||||||
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height);
|
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height);
|
||||||
|
|
@ -204,7 +204,7 @@ meter_render_metrics (Gtk::Widget& w, vector<DataType> types)
|
||||||
win->get_size (width, height);
|
win->get_size (width, height);
|
||||||
|
|
||||||
tickleft = w.get_name().substr(w.get_name().length() - 4) == "Left";
|
tickleft = w.get_name().substr(w.get_name().length() - 4) == "Left";
|
||||||
background = tickleft || w.get_name().substr(w.get_name().length() - 5) == "Right";
|
background = types.size() == 0 || tickleft || w.get_name().substr(w.get_name().length() - 5) == "Right";
|
||||||
|
|
||||||
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height);
|
cairo_surface_t* surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height);
|
||||||
cairo_t* cr = cairo_create (surface);
|
cairo_t* cr = cairo_create (surface);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue