Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
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
libvncserver
Commits
281cb780
Commit
281cb780
authored
Nov 14, 2001
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docu, warning fixed
parent
f61486ed
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
Makefile
Makefile
+2
-2
TODO
TODO
+2
-1
font.c
font.c
+4
-2
No files found.
Makefile
View file @
281cb780
...
...
@@ -9,8 +9,8 @@ VNCSERVERLIB=-L. -lvncserver -L/usr/local/lib -lz -ljpeg
# The code for 3 Bytes/Pixel is not very efficient!
FLAG24
=
-DALLOW24BPP
OPTFLAGS
=
-g
# -Wall
#
OPTFLAGS=-O2 -Wall
#
OPTFLAGS=-g # -Wall
OPTFLAGS
=
-O2
-Wall
CFLAGS
=
$(OPTFLAGS)
$(PTHREADDEF)
$(FLAG24)
$(INCLUDES)
RANLIB
=
ranlib
...
...
TODO
View file @
281cb780
immediate:
----------
in keysym tester mouse buttons make copy rect, but text is not marked as mod.
extra_bytes in rfbDrawCharWithClip.
in keysym tested mouse buttons make copy rect, but text is not marked as mod.
cursor drawing: set optional grain to mark bigger rectangles as drawn (else
you end up with thousands of one-pixel-rectangles to encode).
selectbox: scroll bars
...
...
font.c
View file @
281cb780
...
...
@@ -68,12 +68,14 @@ int rfbDrawCharWithClip(rfbScreenInfoPtr rfbScreen,rfbFontDataPtr font,
/* after clipping, x2 will be count of bytes between rows,
* x1 start of i, y1 start of j, width and height will be adjusted. */
if
(
y1
>
y
)
{
y1
-=
y
;
d
+=
(
width
+
7
)
/
8
;
height
-=
y1
;
y
+=
y1
;
}
else
y1
=
0
;
if
(
x1
>
x
)
{
x1
-=
x
;
d
+=
x1
;
width
-=
x1
;
x
+=
x1
;
extra_bytes
+=
x1
/
8
;
}
else
x1
=
0
;
if
(
y1
>
y
)
{
y1
-=
y
;
d
ata
+=
(
width
+
7
)
/
8
;
height
-=
y1
;
y
+=
y1
;
}
else
y1
=
0
;
if
(
x1
>
x
)
{
x1
-=
x
;
d
ata
+=
x1
;
width
-=
x1
;
x
+=
x1
;
extra_bytes
+=
x1
/
8
;
}
else
x1
=
0
;
if
(
y2
<
y
+
height
)
height
-=
y
+
height
-
y2
;
if
(
x2
<
x
+
width
)
{
extra_bytes
+=
(
x1
+
width
)
/
8
-
(
x
+
width
-
x2
+
7
)
/
8
;
width
-=
x
+
width
-
x2
;
}
for
(
j
=
y1
;
j
<
height
;
j
++
)
{
if
((
x1
&
7
)
!=
0
)
d
=
data
[
-
1
];
/* TODO: check if in this case extra_bytes is correct! */
for
(
i
=
x1
;
i
<
width
;
i
++
)
{
if
((
i
&
7
)
==
0
)
{
d
=*
data
;
...
...
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