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
6dab56f9
Commit
6dab56f9
authored
Apr 12, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Working RRE implementation.
parent
ed7e776d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
vnc.js
vnc.js
+17
-13
No files found.
vnc.js
View file @
6dab56f9
...
...
@@ -207,6 +207,7 @@ display_raw: function () {
debug
(
">> display_raw"
);
Canvas
.
rfbImage
(
FBU
.
x
,
FBU
.
y
,
FBU
.
width
,
FBU
.
height
,
FBU
.
arr
);
FBU
.
rects
--
;
FBU
.
arr
=
[];
},
display_copy_rect
:
function
()
{
...
...
@@ -215,31 +216,35 @@ display_copy_rect: function () {
var
old_y
=
FBU
.
arr
.
shift16
();
Canvas
.
copyImage
(
old_x
,
old_y
,
FBU
.
x
,
FBU
.
y
,
FBU
.
width
,
FBU
.
height
);
FBU
.
rects
--
;
FBU
.
arr
=
[];
},
display_rre
:
function
()
{
debug
(
">> display_rre"
);
//
debug(">> display_rre");
if
(
FBU
.
subrects
==
0
)
{
debug
(
"Processing new RRE"
);
FBU
.
subrects
=
FBU
.
arr
.
shift32
();
var
color
=
data
.
shiftBytes
(
FBU
.
fb_Bpp
);
// Background
debug
(
"RRE ("
+
FBU
.
subrects
+
" subrects)"
);
var
color
=
FBU
.
arr
.
shiftBytes
(
RFB
.
fb_Bpp
);
// Background
Canvas
.
rfbRect
(
FBU
.
x
,
FBU
.
y
,
FBU
.
width
,
FBU
.
height
,
color
);
}
else
{
/* Render one sub-rectangle */
FBU
.
subrects
--
;
var
color
=
data
.
shiftBytes
(
FBU
.
fb_Bpp
);
var
x
=
data
.
shift16
();
var
y
=
data
.
shift16
();
var
width
=
data
.
shift16
();
var
height
=
data
.
shift16
();
Canvas
.
rfbRect
(
x
,
y
,
width
,
height
,
color
);
var
color
=
FBU
.
arr
.
shiftBytes
(
RFB
.
fb_Bpp
);
var
x
=
FBU
.
arr
.
shift16
();
var
y
=
FBU
.
arr
.
shift16
();
var
width
=
FBU
.
arr
.
shift16
();
var
height
=
FBU
.
arr
.
shift16
();
Canvas
.
rfbRect
(
FBU
.
x
+
x
,
FBU
.
y
+
y
,
width
,
height
,
color
);
}
//debug("rects: " + FBU.rects + ", FBU.subrects: " + FBU.subrects);
if
(
FBU
.
subrects
>
0
)
{
FBU
.
bytes
=
(
8
+
FBU
.
fb_Bpp
);
FBU
.
bytes
=
(
RFB
.
fb_Bpp
+
8
);
// One more
}
else
{
FBU
.
rect
--
;
FBU
.
rects
--
;
FBU
.
arr
=
[];
}
//debug("<< display_rre, FBU.bytes: " + FBU.bytes);
},
...
...
@@ -264,7 +269,7 @@ normal_msg: function (data) {
}
while
(
data
.
length
>
0
)
{
debug
(
"data.length: "
+
data
.
length
+
", FBU.bytes: "
+
FBU
.
bytes
);
//
debug("data.length: " + data.length + ", FBU.bytes: " + FBU.bytes);
if
(
FBU
.
bytes
==
0
)
{
FBU
.
x
=
data
.
shift16
();
FBU
.
y
=
data
.
shift16
();
...
...
@@ -280,7 +285,6 @@ normal_msg: function (data) {
FBU
.
bytes
=
4
;
break
;
case
2
:
// RRE
debug
(
"RRE"
);
FBU
.
bytes
=
4
+
RFB
.
fb_Bpp
;
break
;
}
...
...
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