diff options
author | dscho <dscho> | 2003-07-28 00:58:27 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-28 00:58:27 +0000 |
commit | eef408c1d84c7aaceb9732dd9a7e216886d2c2f8 (patch) | |
tree | 8a758b53f2d5e9a74f239ac6c8fd17fe283260d7 | |
parent | 9f0a1a3bc16d26420c703c6e6cc0f18bd4f6b81e (diff) | |
download | libtdevnc-eef408c1d84c7aaceb9732dd9a7e216886d2c2f8.tar.gz libtdevnc-eef408c1d84c7aaceb9732dd9a7e216886d2c2f8.zip |
first beginnings of automatic tests, thanks to libvncclient
-rw-r--r-- | test/tight-1.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/tight-1.c b/test/tight-1.c new file mode 100644 index 0000000..f405097 --- /dev/null +++ b/test/tight-1.c @@ -0,0 +1,25 @@ +#include <rfb/rfb.h> +#include <rfb/rfbclient.h> + +int main(int argc,char** argv) +{ + int i,j; + + rfbScreenInfoPtr server=rfbGetScreen(&argc,argv,400,300,8,3,4); + rfbClient* client=rfbGetClient(&argc,argv,8,3,4); + + server->frameBuffer=malloc(400*300*4); + for(j=0;j<400*300*4;j++) + server->frameBuffer[j]=j; + //server->maxRectsPerUpdate=-1; + rfbInitServer(server); + while(1) { + + for(j=0;j<400;j+=10) + for(i=0;i<300;i+=10) + rfbMarkRectAsModified(server,i,j,i+5,j+5); + + rfbProcessEvents(server,50); + } + return(0); +} |