Commit 15c3a13d authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

Merge branch 'fix-vu-meter'

parents 0226eaa5 6a636203
...@@ -2958,13 +2958,18 @@ function gui_vumeter_draw_peak(cid,tag,color,p1,p2,p3,p4,width,basex,basey) { ...@@ -2958,13 +2958,18 @@ function gui_vumeter_draw_peak(cid,tag,color,p1,p2,p3,p4,width,basex,basey) {
// probably should change tag from "rect" to "cover" // probably should change tag from "rect" to "cover"
function gui_vumeter_update_rms(cid, tag, p1, p2, p3, p4, basex, basey) { function gui_vumeter_update_rms(cid, tag, p1, p2, p3, p4, basex, basey) {
var rect = get_item(cid, tag + "rect"); var rect;
configure_item(rect, { if (patchwin[cid]) {
x: p1 - basex, rect = get_item(cid, tag + "rect");
y: p2 - basey, if (rect) {
width: p3 - p1, configure_item(rect, {
height: p4 - p2 + 1 x: p1 - basex,
}); y: p2 - basey,
width: p3 - p1,
height: p4 - p2 + 1
});
}
}
} }
function gui_vumeter_update_peak(cid,tag,color,p1,p2,p3,p4,basex,basey) { function gui_vumeter_update_peak(cid,tag,color,p1,p2,p3,p4,basex,basey) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment