From 95b291b15e9dd459d5b29dfffc77c257bf128fb6 Mon Sep 17 00:00:00 2001 From: "Alt, Michael" Date: Mon, 16 Dec 2019 17:09:57 +0100 Subject: [PATCH] tried to fix rotated display --- core/display.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/display.js b/core/display.js index eb1365d1..d2085018 100644 --- a/core/display.js +++ b/core/display.js @@ -467,8 +467,8 @@ export default class Display { // draw the current tile to the screen finishTile() { - var x0 = this._tile_x; - var y0 = this._tile_y; + var x0 = this._tile_x - this._viewportLoc.x; + var y0 = this._tile_y - this._viewportLoc.y; if (this._rotate === 'right') { var a = x0; x0 = this._fb_width - y0 - 1; diff --git a/package.json b/package.json index 1bf1076e..d643254e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gbrehmer/novnc", - "version": "1.1.0-patch8", + "version": "1.1.0-patch9", "description": "An HTML5 VNC client", "browser": "lib/rfb", "directories": {