diff options
author | Christian Beier <dontmind@freeshell.org> | 2011-03-17 13:32:08 +0100 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2011-03-17 13:32:08 +0100 |
commit | 56234cd0b656de3c8827288f2adf78c9cb12d0c5 (patch) | |
tree | 0b01c1373a38f8ace1f22ba039e25e7de7e66479 /examples | |
parent | bf2470cec69ab00f7213aa136f5a2d486c9da17a (diff) | |
download | libtdevnc-56234cd0b656de3c8827288f2adf78c9cb12d0c5.tar.gz libtdevnc-56234cd0b656de3c8827288f2adf78c9cb12d0c5.zip |
Fix remaining compiler warnings.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/rotate.c | 7 | ||||
-rw-r--r-- | examples/zippy.c | 6 |
2 files changed, 4 insertions, 9 deletions
diff --git a/examples/rotate.c b/examples/rotate.c index 66fca80..e552e4a 100644 --- a/examples/rotate.c +++ b/examples/rotate.c @@ -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 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; |