summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2004-06-07 17:25:24 +0000
committerdscho <dscho>2004-06-07 17:25:24 +0000
commitc7730d9bad3add8dc02fb1ebbc9c65a35415d43b (patch)
tree3cbec06c0104e3e8711fee29298959ca489ef6cc
parentfefcb9188a0810577ee8d17a384af19c39d8a49e (diff)
downloadlibtdevnc-c7730d9bad3add8dc02fb1ebbc9c65a35415d43b.tar.gz
libtdevnc-c7730d9bad3add8dc02fb1ebbc9c65a35415d43b.zip
added -encodings
-rw-r--r--TODO2
-rw-r--r--client_examples/SDLvncviewer.c10
2 files changed, 10 insertions, 2 deletions
diff --git a/TODO b/TODO
index a1e5d67..33c1b85 100644
--- a/TODO
+++ b/TODO
@@ -1,7 +1,7 @@
immediate:
----------
-TightVNC encoding!!! Regression!!!
+CoRRE, Hextile encoding!!! Regression!!!
extra_bytes in rfbDrawCharWithClip.
tested mouse buttons make copy rect, but text is not marked as mod.
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c
index e1fe3ff..69809d3 100644
--- a/client_examples/SDLvncviewer.c
+++ b/client_examples/SDLvncviewer.c
@@ -196,7 +196,15 @@ int main(int argc,char** argv) {
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE);
cl=rfbGetClient(5,3,2);
- //cl=rfbGetClient(8,3,4);
+ i=1;
+ while(i<argc-1) {
+ if(i+1<argc-1 && !strcmp(argv[i],"-encodings")) {
+ cl->appData.encodingsString=argv[i+1];
+ i+=2;
+ }
+ }
+ argc-=i-1;
+ memmove(argv+1,argv+i,(argc-1)*sizeof(char*));
cl->MallocFrameBuffer=resize;
cl->GotFrameBufferUpdate=update;
if(!rfbInitClient(cl,&argc,argv))