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
a7d66f23
Commit
a7d66f23
authored
Oct 07, 2001
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed 24bit (update was garbled)
parent
87c12192
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
Makefile
Makefile
+2
-0
README
README
+3
-1
tabletrans24template.c
tabletrans24template.c
+4
-4
No files found.
Makefile
View file @
a7d66f23
...
...
@@ -44,6 +44,8 @@ libvncserver.a: $(OBJS)
$(AR)
cru
$@
$(OBJS)
$(RANLIB)
$@
translate.o
:
translate.c tableinit24.c tableinitcmtemplate.c tableinittctemplate.c tabletrans24template.c tabletranstemplate.c
example
:
example.o libvncserver.a
$(CC)
-o
example example.o
$(LIBS)
...
...
README
View file @
a7d66f23
...
...
@@ -164,9 +164,11 @@ ptrAddEvent(int buttonMask,int x,int y,rfbClientPtr cl)
setXCutText(char* str,int len,rfbClientPtr cl)
is called when the selection changes.
There
is only one hook
:
There
are only two hooks
:
newClientHook(rfbClientPtr cl)
is called when a new client has connected.
displayHook
is called just before a frame buffer update is sent.
You can also override the following methods:
getCursorPtr(rfbClientPtr cl)
...
...
tabletrans24template.c
View file @
a7d66f23
...
...
@@ -55,7 +55,7 @@ rfbTranslateWithSingleTable24to24 (char *table, rfbPixelFormat *in,
{
CARD8
*
ip
=
(
CARD8
*
)
iptr
;
CARD8
*
op
=
(
CARD8
*
)
optr
;
int
ipextra
=
bytesBetweenInputLines
/
3
-
width
;
int
ipextra
=
bytesBetweenInputLines
-
width
*
3
;
CARD8
*
opLineEnd
;
CARD8
*
t
=
(
CARD8
*
)
table
;
int
shift
=
rfbEndianTest
?
0
:
8
;
...
...
@@ -94,7 +94,7 @@ rfbTranslateWithRGBTables24to24 (char *table, rfbPixelFormat *in,
{
CARD8
*
ip
=
(
CARD8
*
)
iptr
;
CARD8
*
op
=
(
CARD8
*
)
optr
;
int
ipextra
=
bytesBetweenInputLines
/
3
-
width
;
int
ipextra
=
bytesBetweenInputLines
-
width
*
3
;
CARD8
*
opLineEnd
;
CARD8
*
redTable
=
(
CARD8
*
)
table
;
CARD8
*
greenTable
=
redTable
+
3
*
(
in
->
redMax
+
1
);
...
...
@@ -146,7 +146,7 @@ rfbTranslateWithSingleTable24toOUT (char *table, rfbPixelFormat *in,
{
CARD8
*
ip
=
(
CARD8
*
)
iptr
;
OUT_T
*
op
=
(
OUT_T
*
)
optr
;
int
ipextra
=
bytesBetweenInputLines
/
3
-
width
;
int
ipextra
=
bytesBetweenInputLines
-
width
*
3
;
OUT_T
*
opLineEnd
;
OUT_T
*
t
=
(
OUT_T
*
)
table
;
int
shift
=
rfbEndianTest
?
0
:
8
;
...
...
@@ -179,7 +179,7 @@ rfbTranslateWithRGBTables24toOUT (char *table, rfbPixelFormat *in,
{
CARD8
*
ip
=
(
CARD8
*
)
iptr
;
OUT_T
*
op
=
(
OUT_T
*
)
optr
;
int
ipextra
=
bytesBetweenInputLines
/
3
-
width
;
int
ipextra
=
bytesBetweenInputLines
-
width
*
3
;
OUT_T
*
opLineEnd
;
OUT_T
*
redTable
=
(
OUT_T
*
)
table
;
OUT_T
*
greenTable
=
redTable
+
in
->
redMax
+
1
;
...
...
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