Commit f38f67e4 authored by dscho's avatar dscho

Fix blooptest example

parent b7a901d7
...@@ -20,8 +20,3 @@ noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \ ...@@ -20,8 +20,3 @@ noinst_PROGRAMS=example pnmshow regiontest pnmshow24 fontsel \
vncev storepasswd colourmaptest simple simple15 $(MAC) \ vncev storepasswd colourmaptest simple simple15 $(MAC) \
$(FILETRANSFER) backchannel $(BLOOPTEST) $(FILETRANSFER) backchannel $(BLOOPTEST)
blooptest.o: example.c
$(CC) $(AM_CFLAGS) $(CFLAGS) -c -o $@ $<
#define BACKGROUND_LOOP_TEST
#include "example.c"
...@@ -324,6 +324,7 @@ int main(int argc,char** argv) ...@@ -324,6 +324,7 @@ int main(int argc,char** argv)
/* this is the non-blocking event loop; a background thread is started */ /* this is the non-blocking event loop; a background thread is started */
rfbRunEventLoop(rfbScreen,-1,TRUE); rfbRunEventLoop(rfbScreen,-1,TRUE);
fprintf(stderr, "Running background loop...\n");
/* now we could do some cool things like rendering in idle time */ /* now we could do some cool things like rendering in idle time */
while(1) sleep(5); /* render(); */ while(1) sleep(5); /* render(); */
#endif /* BACKGROUND_LOOP */ #endif /* BACKGROUND_LOOP */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment