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>
pull/1/head
Johannes Schindelin 13 years ago
parent bffd9ee33b
commit 84be9d3f49

@ -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";

Loading…
Cancel
Save