diff options
author | dscho <dscho> | 2006-03-27 15:30:05 +0000 |
---|---|---|
committer | dscho <dscho> | 2006-03-27 15:30:05 +0000 |
commit | 199ec23a058a46c5caebc632756862d968eb437f (patch) | |
tree | 4785a36aa2cb00ef0ebcc093e68ae67b6419336e | |
parent | e2e9347946bbaf1bf87c571d4a1fd9115fe90954 (diff) | |
download | libvncserver-199ec23a058a46c5caebc632756862d968eb437f.zip libvncserver-199ec23a058a46c5caebc632756862d968eb437f.tar.gz |
libvncclient: take -compress <level> and -quality <level> command line arguments
-rw-r--r-- | libvncclient/vncviewer.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index a5ca15d..8ad5928 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -221,6 +221,12 @@ rfbBool rfbInitClient(rfbClient* client,int* argc,char** argv) { } else if (i+1<*argc && strcmp(argv[i], "-encodings") == 0) { client->appData.encodingsString = argv[i+1]; j+=2; + } else if (i+1<*argc && strcmp(argv[i], "-compress") == 0) { + client->appData.compressLevel = atoi(argv[i+1]); + j+=2; + } else if (i+1<*argc && strcmp(argv[i], "-quality") == 0) { + client->appData.qualityLevel = atoi(argv[i+1]); + j+=2; } else { char* colon=strchr(argv[i],':'); |