Fix blooptest example

pull/1/head
dscho 17 years ago
parent b7a901d78f
commit f38f67e4e9

@ -20,8 +20,3 @@ noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \
vncev storepasswd colourmaptest simple simple15 $(MAC) \
$(FILETRANSFER) backchannel $(BLOOPTEST)
blooptest.o: example.c
$(CC) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $<

@ -0,0 +1,2 @@
#define BACKGROUND_LOOP_TEST
#include "example.c"

@ -324,6 +324,7 @@ int main(int argc,char** argv)
/* this is the non-blocking event loop; a background thread is started */
rfbRunEventLoop(rfbScreen,-1,TRUE);
fprintf(stderr, "Running background loop...\n");
/* now we could do some cool things like rendering in idle time */
while(1) sleep(5); /* render(); */
#endif /* BACKGROUND_LOOP */

Loading…
Cancel
Save