From 84be9d3f49fb2d47c25f590b2deec8076966ebe1 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Sun, 9 Oct 2011 21:03:46 -0500 Subject: [PATCH] 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 --- client_examples/SDLvncviewer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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";