Merge branch 'develop' into bookmarks
This commit is contained in:
commit
c3bcb17312
@ -902,8 +902,16 @@ function mkscale()
|
|||||||
|
|
||||||
function resize_scale()
|
function resize_scale()
|
||||||
{
|
{
|
||||||
scale_ctx.canvas.width = window.innerWidth;
|
ratio = window.devicePixelRatio || 1;
|
||||||
scale_ctx.canvas.height = 47;
|
var w = window.innerWidth;
|
||||||
|
var h = 47;
|
||||||
|
scale_canvas.style.width = w + "px";
|
||||||
|
scale_canvas.style.height = h + "px";
|
||||||
|
w *= ratio;
|
||||||
|
h *= ratio;
|
||||||
|
scale_canvas.width = w;
|
||||||
|
scale_canvas.height = h;
|
||||||
|
scale_ctx.scale(ratio, ratio);
|
||||||
mkscale();
|
mkscale();
|
||||||
position_bookmarks();
|
position_bookmarks();
|
||||||
}
|
}
|
||||||
@ -1377,7 +1385,6 @@ function dial_button_click() {
|
|||||||
var available = find_dial_frequencies();
|
var available = find_dial_frequencies();
|
||||||
if (!available.length) return;
|
if (!available.length) return;
|
||||||
var frequency = available[0].frequency;
|
var frequency = available[0].frequency;
|
||||||
console.info(frequency);
|
|
||||||
demodulator_set_offset_frequency(0, frequency - center_freq);
|
demodulator_set_offset_frequency(0, frequency - center_freq);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user