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
74c7c6cd
Commit
74c7c6cd
authored
Sep 25, 2001
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
look for align bug with odd width. Bug in vncviewer?
parent
1342b7e1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
d3des.o
d3des.o
+0
-0
example.c
example.c
+7
-2
tabletranstemplate.c
tabletranstemplate.c
+1
-1
No files found.
d3des.o
deleted
100644 → 0
View file @
1342b7e1
File deleted
example.c
View file @
74c7c6cd
...
@@ -38,12 +38,17 @@ const int maxx=641, maxy=480, bpp=4;
...
@@ -38,12 +38,17 @@ const int maxx=641, maxy=480, bpp=4;
void
initBuffer
(
unsigned
char
*
buffer
)
void
initBuffer
(
unsigned
char
*
buffer
)
{
{
int
i
,
j
;
int
i
,
j
;
for
(
i
=
0
;
i
<
maxx
;
++
i
)
for
(
j
=
0
;
j
<
maxy
;
++
j
)
{
for
(
j
=
0
;
j
<
maxy
;
++
j
)
{
for
(
i
=
0
;
i
<
maxx
;
++
i
)
{
buffer
[(
j
*
maxx
+
i
)
*
bpp
+
0
]
=
(
i
+
j
)
*
128
/
(
maxx
+
maxy
);
/* red */
buffer
[(
j
*
maxx
+
i
)
*
bpp
+
0
]
=
(
i
+
j
)
*
128
/
(
maxx
+
maxy
);
/* red */
buffer
[(
j
*
maxx
+
i
)
*
bpp
+
1
]
=
i
*
128
/
maxx
;
/* green */
buffer
[(
j
*
maxx
+
i
)
*
bpp
+
1
]
=
i
*
128
/
maxx
;
/* green */
buffer
[(
j
*
maxx
+
i
)
*
bpp
+
2
]
=
j
*
256
/
maxy
;
/* blue */
buffer
[(
j
*
maxx
+
i
)
*
bpp
+
2
]
=
j
*
256
/
maxy
;
/* blue */
}
}
buffer
[
j
*
maxx
*
bpp
+
0
]
=
0xff
;
buffer
[
j
*
maxx
*
bpp
+
1
]
=
0xff
;
buffer
[
j
*
maxx
*
bpp
+
2
]
=
0xff
;
buffer
[
j
*
maxx
*
bpp
+
3
]
=
0xff
;
}
}
}
/* Here we create a structure so that every client has it's own pointer */
/* Here we create a structure so that every client has it's own pointer */
...
...
tabletranstemplate.c
View file @
74c7c6cd
...
@@ -98,7 +98,7 @@ rfbTranslateWithRGBTablesINtoOUT (char *table, rfbPixelFormat *in,
...
@@ -98,7 +98,7 @@ rfbTranslateWithRGBTablesINtoOUT (char *table, rfbPixelFormat *in,
OUT_T
*
blueTable
=
greenTable
+
in
->
greenMax
+
1
;
OUT_T
*
blueTable
=
greenTable
+
in
->
greenMax
+
1
;
while
(
height
>
0
)
{
while
(
height
>
0
)
{
opLineEnd
=
op
+
width
;
opLineEnd
=
&
op
[
width
]
;
while
(
op
<
opLineEnd
)
{
while
(
op
<
opLineEnd
)
{
*
(
op
++
)
=
(
redTable
[(
*
ip
>>
in
->
redShift
)
&
in
->
redMax
]
|
*
(
op
++
)
=
(
redTable
[(
*
ip
>>
in
->
redShift
)
&
in
->
redMax
]
|
...
...
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