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
14717eb4
Commit
14717eb4
authored
Aug 15, 2012
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix tight decoding when using binary/non-base64 connection.
parent
4dd1bb1e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
rfb.js
include/rfb.js
+3
-3
util.js
include/util.js
+4
-0
No files found.
include/rfb.js
View file @
14717eb4
...
@@ -1252,11 +1252,11 @@ encHandlers.HEXTILE = function display_hextile() {
...
@@ -1252,11 +1252,11 @@ encHandlers.HEXTILE = function display_hextile() {
rQi
+=
FBU
.
bytes
-
1
;
rQi
+=
FBU
.
bytes
-
1
;
}
else
{
}
else
{
if
(
FBU
.
subencoding
&
0x02
)
{
// Background
if
(
FBU
.
subencoding
&
0x02
)
{
// Background
FBU
.
background
=
rQ
.
s
lice
(
rQi
,
rQi
+
fb_Bpp
);
FBU
.
background
=
rQ
.
s
ubarray
(
rQi
,
rQi
+
fb_Bpp
);
rQi
+=
fb_Bpp
;
rQi
+=
fb_Bpp
;
}
}
if
(
FBU
.
subencoding
&
0x04
)
{
// Foreground
if
(
FBU
.
subencoding
&
0x04
)
{
// Foreground
FBU
.
foreground
=
rQ
.
s
lice
(
rQi
,
rQi
+
fb_Bpp
);
FBU
.
foreground
=
rQ
.
s
ubarray
(
rQi
,
rQi
+
fb_Bpp
);
rQi
+=
fb_Bpp
;
rQi
+=
fb_Bpp
;
}
}
...
@@ -1266,7 +1266,7 @@ encHandlers.HEXTILE = function display_hextile() {
...
@@ -1266,7 +1266,7 @@ encHandlers.HEXTILE = function display_hextile() {
rQi
+=
1
;
rQi
+=
1
;
for
(
s
=
0
;
s
<
subrects
;
s
+=
1
)
{
for
(
s
=
0
;
s
<
subrects
;
s
+=
1
)
{
if
(
FBU
.
subencoding
&
0x10
)
{
// SubrectsColoured
if
(
FBU
.
subencoding
&
0x10
)
{
// SubrectsColoured
color
=
rQ
.
s
lice
(
rQi
,
rQi
+
fb_Bpp
);
color
=
rQ
.
s
ubarray
(
rQi
,
rQi
+
fb_Bpp
);
rQi
+=
fb_Bpp
;
rQi
+=
fb_Bpp
;
}
else
{
}
else
{
color
=
FBU
.
foreground
;
color
=
FBU
.
foreground
;
...
...
include/util.js
View file @
14717eb4
...
@@ -18,6 +18,10 @@ var Util = {};
...
@@ -18,6 +18,10 @@ var Util = {};
* Make arrays quack
* Make arrays quack
*/
*/
Array
.
prototype
.
subarray
=
function
(
start
,
end
)
{
this
.
slice
(
start
,
end
);
};
Array
.
prototype
.
push8
=
function
(
num
)
{
Array
.
prototype
.
push8
=
function
(
num
)
{
this
.
push
(
num
&
0xFF
);
this
.
push
(
num
&
0xFF
);
};
};
...
...
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