test disable flip function
This commit is contained in:
parent
2f6430e7be
commit
c122f76dce
|
|
@ -56,7 +56,6 @@ export default class Display {
|
||||||
this._backbuffer = document.createElement('canvas');
|
this._backbuffer = document.createElement('canvas');
|
||||||
this._drawCtx = this._backbuffer.getContext('2d');
|
this._drawCtx = this._backbuffer.getContext('2d');
|
||||||
|
|
||||||
|
|
||||||
if (this._rotate === 'left' || this._rotate === 'right') {
|
if (this._rotate === 'left' || this._rotate === 'right') {
|
||||||
this._damageBounds = {
|
this._damageBounds = {
|
||||||
left: 0, top: 0,
|
left: 0, top: 0,
|
||||||
|
|
@ -307,9 +306,9 @@ export default class Display {
|
||||||
// FIXME: We may need to disable image smoothing here
|
// FIXME: We may need to disable image smoothing here
|
||||||
// as well (see copyImage()), but we haven't
|
// as well (see copyImage()), but we haven't
|
||||||
// noticed any problem yet.
|
// noticed any problem yet.
|
||||||
this._targetCtx.drawImage(this._backbuffer,
|
// this._targetCtx.drawImage(this._backbuffer,
|
||||||
x, y, w, h,
|
// x, y, w, h,
|
||||||
vx, vy, w, h);
|
// vx, vy, w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
this._damageBounds.left = this._damageBounds.top = 65535;
|
this._damageBounds.left = this._damageBounds.top = 65535;
|
||||||
|
|
@ -737,7 +736,7 @@ export default class Display {
|
||||||
const a = this._renderQ[0];
|
const a = this._renderQ[0];
|
||||||
switch (a.type) {
|
switch (a.type) {
|
||||||
case 'flip':
|
case 'flip':
|
||||||
//this.flip(true);
|
this.flip(true);
|
||||||
break;
|
break;
|
||||||
case 'copy':
|
case 'copy':
|
||||||
this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height, true);
|
this.copyImage(a.old_x, a.old_y, a.x, a.y, a.width, a.height, true);
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@gbrehmer/novnc",
|
"name": "@gbrehmer/novnc",
|
||||||
"version": "1.1.0-patch10",
|
"version": "1.1.0-patch111",
|
||||||
"description": "An HTML5 VNC client",
|
"description": "An HTML5 VNC client",
|
||||||
"browser": "lib/rfb",
|
"browser": "lib/rfb",
|
||||||
"directories": {
|
"directories": {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue