summaryrefslogtreecommitdiffstats
path: root/examples/pnmshow.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pnmshow.c')
-rw-r--r--examples/pnmshow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/pnmshow.c b/examples/pnmshow.c
index b40cf53..9e4a509 100644
--- a/examples/pnmshow.c
+++ b/examples/pnmshow.c
@@ -2,7 +2,7 @@
#include <rfb/rfb.h>
#include <rfb/keysym.h>
-void HandleKey(rfbBool down,rfbKeySym key,rfbClientPtr cl)
+static void HandleKey(rfbBool down,rfbKeySym key,rfbClientPtr cl)
{
if(down && (key==XK_Escape || key=='q' || key=='Q'))
rfbCloseClient(cl);
@@ -96,6 +96,8 @@ int main(int argc,char** argv)
rfbScreen->frameBuffer[j*paddedWidth*4+i]=0;
}
break;
+ case GRAY:
+ break;
case BW:
/* correct the format from 1 bit to 8 bits */
for(j=height-1;j>=0;j--)