summaryrefslogtreecommitdiffstats
path: root/client_examples/SDLvncviewer.c
diff options
context:
space:
mode:
Diffstat (limited to 'client_examples/SDLvncviewer.c')
-rw-r--r--client_examples/SDLvncviewer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c
index 69809d3..9dfc8f3 100644
--- a/client_examples/SDLvncviewer.c
+++ b/client_examples/SDLvncviewer.c
@@ -179,15 +179,14 @@ rfbKeySym SDL_keysym2rfbKeySym(int keysym) {
}
}
-#define main main1
-#include "ppmtest.c"
-#undef main
-
void update(rfbClient* cl,int x,int y,int w,int h) {
SDL_UpdateRect(cl->clientData, x, y, w, h);
- SaveFramebufferAsPPM(cl,x,y,w,h);
}
+#ifdef mac
+#define main SDLmain
+#endif
+
int main(int argc,char** argv) {
rfbClient* cl;
int i,buttonMask=0;