summaryrefslogtreecommitdiffstats
path: root/examples/zippy.c
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-03-17 13:32:08 +0100
committerChristian Beier <dontmind@freeshell.org>2011-03-17 13:32:08 +0100
commit56234cd0b656de3c8827288f2adf78c9cb12d0c5 (patch)
tree0b01c1373a38f8ace1f22ba039e25e7de7e66479 /examples/zippy.c
parentbf2470cec69ab00f7213aa136f5a2d486c9da17a (diff)
downloadlibtdevnc-56234cd0b656de3c8827288f2adf78c9cb12d0c5.tar.gz
libtdevnc-56234cd0b656de3c8827288f2adf78c9cb12d0c5.zip
Fix remaining compiler warnings.
Diffstat (limited to 'examples/zippy.c')
-rw-r--r--examples/zippy.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/zippy.c b/examples/zippy.c
index 4f793a9..5a5961a 100644
--- a/examples/zippy.c
+++ b/examples/zippy.c
@@ -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;