Commit 84be9d3f authored by Johannes Schindelin's avatar Johannes Schindelin

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: 's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
parent bffd9ee3
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment