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
44ff8632
Commit
44ff8632
authored
Apr 17, 2013
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rfb.js: set FBU.bytes before waiting from RRE.
Also, in COPYRECT, set FBU.bytes to the number we know we will need.
parent
1e047758
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
rfb.js
include/rfb.js
+2
-1
No files found.
include/rfb.js
View file @
44ff8632
...
@@ -1126,7 +1126,7 @@ encHandlers.COPYRECT = function display_copy_rect() {
...
@@ -1126,7 +1126,7 @@ encHandlers.COPYRECT = function display_copy_rect() {
var
old_x
,
old_y
;
var
old_x
,
old_y
;
FBU
.
bytes
=
1
;
FBU
.
bytes
=
4
;
if
(
ws
.
rQwait
(
"COPYRECT"
,
4
))
{
return
false
;
}
if
(
ws
.
rQwait
(
"COPYRECT"
,
4
))
{
return
false
;
}
display
.
renderQ_push
({
display
.
renderQ_push
({
'type'
:
'copy'
,
'type'
:
'copy'
,
...
@@ -1146,6 +1146,7 @@ encHandlers.RRE = function display_rre() {
...
@@ -1146,6 +1146,7 @@ encHandlers.RRE = function display_rre() {
var
color
,
x
,
y
,
width
,
height
,
chunk
;
var
color
,
x
,
y
,
width
,
height
,
chunk
;
if
(
FBU
.
subrects
===
0
)
{
if
(
FBU
.
subrects
===
0
)
{
FBU
.
bytes
=
4
+
fb_Bpp
;
if
(
ws
.
rQwait
(
"RRE"
,
4
+
fb_Bpp
))
{
return
false
;
}
if
(
ws
.
rQwait
(
"RRE"
,
4
+
fb_Bpp
))
{
return
false
;
}
FBU
.
subrects
=
ws
.
rQshift32
();
FBU
.
subrects
=
ws
.
rQshift32
();
color
=
ws
.
rQshiftBytes
(
fb_Bpp
);
// Background
color
=
ws
.
rQshiftBytes
(
fb_Bpp
);
// Background
...
...
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