Merge branch 'develop' into bookmarks

This commit is contained in:
Jakob Ketterl 2019-09-28 07:36:54 +02:00
commit c3bcb17312

View File

@ -902,8 +902,16 @@ function mkscale()
function resize_scale()
{
scale_ctx.canvas.width = window.innerWidth;
scale_ctx.canvas.height = 47;
ratio = window.devicePixelRatio || 1;
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();
position_bookmarks();
}
@ -1377,7 +1385,6 @@ function dial_button_click() {
var available = find_dial_frequencies();
if (!available.length) return;
var frequency = available[0].frequency;
console.info(frequency);
demodulator_set_offset_frequency(0, frequency - center_freq);
}