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
56234cd0
Commit
56234cd0
authored
Mar 17, 2011
by
Christian Beier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix remaining compiler warnings.
parent
bf2470ce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
18 deletions
+4
-18
rotate.c
examples/rotate.c
+0
-7
zippy.c
examples/zippy.c
+4
-2
zrle.c
libvncserver/zrle.c
+0
-3
zrleencodetemplate.c
libvncserver/zrleencodetemplate.c
+0
-6
No files found.
examples/rotate.c
View file @
56234cd0
...
...
@@ -2,13 +2,6 @@
#include <rfb/rfb.h>
#include <rfb/keysym.h>
static
int
gcd
(
int
x
,
int
y
)
{
if
(
x
==
0
)
return
y
;
return
gcd
((
y
%
x
),
x
);
}
#define CONCAT2(a,b) a##b
#define CONCAT2E(a,b) CONCAT2(a,b)
#define CONCAT3(a,b,c) a##b##c
...
...
examples/zippy.c
View file @
56234cd0
...
...
@@ -13,6 +13,8 @@ static int maxx=400, maxy=400, bpp=4;
void
blank_framebuffer
(
char
*
frame_buffer
,
int
x1
,
int
y1
,
int
x2
,
int
y2
);
/* displays a red bar, a green bar, and a blue bar */
void
draw_primary_colors
(
char
*
frame_buffer
,
int
x1
,
int
y1
,
int
x2
,
int
y2
);
void
draw_primary_colours_generic
(
rfbScreenInfoPtr
s
,
int
x1
,
int
y1
,
int
x2
,
int
y2
);
void
draw_primary_colours_generic_fast
(
rfbScreenInfoPtr
s
,
int
x1
,
int
y1
,
int
x2
,
int
y2
);
void
linecount
(
char
*
frame_buffer
);
/* handles mouse events */
void
on_mouse_event
(
int
buttonMask
,
int
x
,
int
y
,
rfbClientPtr
cl
);
...
...
@@ -76,7 +78,7 @@ void draw_primary_colors (char* frame_buffer, int x1, int y1, int x2, int y2)
}
/* Dscho's versions (slower, but works for bpp != 3 or 4) */
static
void
draw_primary_colours_generic
(
rfbScreenInfoPtr
s
,
int
x1
,
int
y1
,
int
x2
,
int
y2
)
void
draw_primary_colours_generic
(
rfbScreenInfoPtr
s
,
int
x1
,
int
y1
,
int
x2
,
int
y2
)
{
rfbPixelFormat
f
=
s
->
serverFormat
;
int
i
,
j
;
...
...
@@ -90,7 +92,7 @@ static void draw_primary_colours_generic(rfbScreenInfoPtr s,int x1,int y1,int x2
rfbDrawPixel
(
s
,
i
,
j
,
f
.
blueMax
<<
f
.
blueShift
);
}
static
void
draw_primary_colours_generic_fast
(
rfbScreenInfoPtr
s
,
int
x1
,
int
y1
,
int
x2
,
int
y2
)
void
draw_primary_colours_generic_fast
(
rfbScreenInfoPtr
s
,
int
x1
,
int
y1
,
int
x2
,
int
y2
)
{
rfbPixelFormat
f
=
s
->
serverFormat
;
int
i
,
j
,
y3
=
(
y1
*
2
+
y2
)
/
3
,
y4
=
(
y1
+
y2
*
2
)
/
3
;
...
...
libvncserver/zrle.c
View file @
56234cd0
...
...
@@ -96,9 +96,6 @@
* data.
*/
/* TODO: put into rfbClient struct */
static
char
zrleBeforeBuf
[
rfbZRLETileWidth
*
rfbZRLETileHeight
*
4
+
4
];
/*
* rfbSendRectEncodingZRLE - send a given rectangle using ZRLE encoding.
...
...
libvncserver/zrleencodetemplate.c
View file @
56234cd0
...
...
@@ -84,8 +84,6 @@ static const int bitsPerPackedPixel[] = {
0
,
1
,
2
,
2
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
,
4
};
static
zrlePaletteHelper
paletteHelper
;
#endif
/* ZRLE_ONCE */
void
ZRLE_ENCODE_TILE
(
PIXEL_T
*
data
,
int
w
,
int
h
,
zrleOutStream
*
os
,
...
...
@@ -144,11 +142,7 @@ void ZRLE_ENCODE_TILE(PIXEL_T* data, int w, int h, zrleOutStream* os,
PIXEL_T
*
end
=
ptr
+
h
*
w
;
*
end
=
~*
(
end
-
1
);
/* one past the end is different so the while loop ends */
#if 0
ph = &paletteHelper;
#else
ph
=
(
zrlePaletteHelper
*
)
paletteHelper
;
#endif
zrlePaletteHelperInit
(
ph
);
while
(
ptr
<
end
)
{
...
...
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