diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2011-10-09 21:03:46 -0500 |
---|---|---|
committer | Johannes Schindelin <johannes.schindelin@gmx.de> | 2011-10-09 21:03:49 -0500 |
commit | 84be9d3f49fb2d47c25f590b2deec8076966ebe1 (patch) | |
tree | a49c45f006dfa83ad14891904508dd3b6e3e1599 | |
parent | bffd9ee33bd141f5c75304b1430d2ea2725239b3 (diff) | |
download | libtdevnc-84be9d3f49fb2d47c25f590b2deec8076966ebe1.tar.gz libtdevnc-84be9d3f49fb2d47c25f590b2deec8076966ebe1.zip |
SDLvncviewer: make it resizable by default
I got annoyed having to specify -resizable all the time; I never use it in
another mode anymore, since I am on a netbook.
The option -no-resizable was added to be able to switch off that feature.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-rw-r--r-- | client_examples/SDLvncviewer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client_examples/SDLvncviewer.c b/client_examples/SDLvncviewer.c index 0f6992a..5fa8f2c 100644 --- a/client_examples/SDLvncviewer.c +++ b/client_examples/SDLvncviewer.c @@ -16,7 +16,7 @@ struct { int sdl; int rfb; } buttonMapping[]={ {0,0} }; -static int enableResizable, viewOnly, listenLoop, buttonMask; +static int enableResizable = 1, viewOnly, listenLoop, buttonMask; #ifdef SDL_ASYNCBLIT int sdlFlags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL; #else @@ -487,6 +487,8 @@ int main(int argc,char** argv) { viewOnly = 1; else if (!strcmp(argv[i], "-resizable")) enableResizable = 1; + else if (!strcmp(argv[i], "-no-resizable")) + enableResizable = 0; else if (!strcmp(argv[i], "-listen")) { listenLoop = 1; argv[i] = "-listennofork"; |