Commit c69c03f0 by fengfan

1

parent 8841a27d
......@@ -41,7 +41,6 @@ export default class Display {
}
this._targetCtx = this._target.getContext('2d');
// the visible canvas viewport (i.e. what actually gets seen)
this._viewportLoc = { 'x': 0, 'y': 0, 'w': this._target.width, 'h': this._target.height };
......@@ -136,7 +135,6 @@ export default class Display {
}
viewportChangeSize(width, height) {
if (!this._clipViewport ||
typeof(width) === "undefined" ||
typeof(height) === "undefined") {
......
......@@ -1748,6 +1748,7 @@ export default class RFB extends EventTargetMixin {
// we're past the point where we could backtrack, so it's safe to call this
this._setDesktopName(name);
console.log(width, height);
this._resize(width, height);
if (!this._viewOnly) { this._keyboard.grab(); }
......
......@@ -14,11 +14,18 @@
Connect parameters are provided in query string:
http://example.com/?host=HOST&port=PORT&scale=true
-->
<title>远程控制123</title>
<title>远程控制</title>
<meta charset="utf-8">
<style>
/* 需要根据现场比例 写适配 */
canvas {
max-width: 100vw;
max-height: 55vw;
min-width: 100vw;
min-height: 55vw;background-color:transparent;
}
#top_bar{
display: none;
}
......
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 sign in to comment