Commit 01d32650 authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed magnifier and preview window frame lagging

parent 2bc4fd12
...@@ -656,6 +656,13 @@ camInterface.prototype.gotShadow=function() { ...@@ -656,6 +656,13 @@ camInterface.prototype.gotShadow=function() {
dbgp(4," Iold"); dbgp(4," Iold");
} }
$($("#idCameraImage_div").find("#working")[0]).off("canvas_ready").on("canvas_ready",function(){
var newsrc = ($("#idCameraImage_div").find("#display")[0]).toDataURL();
frAmeselSetImage ("idMagnifier_frAmesel", newsrc);
frAmeselSetImage ("idWindow_frAmesel", newsrc);
});
//new src //new src
var newsrc = ($("#idCameraImage_div").find("#display")[0]).toDataURL(); var newsrc = ($("#idCameraImage_div").find("#display")[0]).toDataURL();
...@@ -664,8 +671,9 @@ camInterface.prototype.gotShadow=function() { ...@@ -664,8 +671,9 @@ camInterface.prototype.gotShadow=function() {
frAmeselSetImage ("idMagnifier_frAmesel", newsrc); frAmeselSetImage ("idMagnifier_frAmesel", newsrc);
frAmeselSetImage ("idWindow_frAmesel", newsrc); frAmeselSetImage ("idWindow_frAmesel", newsrc);
requestsNextState(true); // **** back to the main loop: GOOD requestsNextState(true); // **** back to the main loop: GOOD
} }
camInterface.prototype.statusUpdate=function() { camInterface.prototype.statusUpdate=function() {
......
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