Browse Source

Fix blooptest example

pull/1/head
dscho 17 years ago
parent
commit
f38f67e4e9
  1. 5
      examples/Makefile.am
  2. 2
      examples/blooptest.c
  3. 1
      examples/example.c

5
examples/Makefile.am

@ -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 $@ $<

2
examples/blooptest.c

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

1
examples/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