Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
1a2371fc
Commit
1a2371fc
authored
Apr 29, 2011
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include/canvas.js: missed scale fix.
parent
58b4c536
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
canvas.js
include/canvas.js
+7
-1
No files found.
include/canvas.js
View file @
1a2371fc
...
...
@@ -38,7 +38,7 @@ cdef('target', 'dom', null, 'Canvas element for VNC viewport');
cdef
(
'focusContainer'
,
'dom'
,
document
,
'DOM element that traps keyboard input'
);
cdef
(
'true_color'
,
'bool'
,
true
,
'Request true color pixel data'
);
cdef
(
'colourMap'
,
'raw'
,
[],
'Colour map array (not true color)'
);
cdef
(
'scale'
,
'float'
,
1.0
,
'Viewport scale factor 0.
0
- 1.0'
);
cdef
(
'scale'
,
'float'
,
1.0
,
'Viewport scale factor 0.
1
- 1.0'
);
cdef
(
'render_mode'
,
'str'
,
''
,
'Canvas rendering mode (read-only)'
);
...
...
@@ -235,6 +235,12 @@ that.rescale = function(factor) {
return
;
}
if
(
factor
>
1.0
)
{
factor
=
1.0
;
}
else
if
(
factor
<
0.1
)
{
factor
=
0.1
;
}
if
(
conf
.
scale
===
factor
)
{
//Util.Debug("Canvas already scaled to '" + factor + "'");
return
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment