Implemented the "-upf" command-line parameter. It allows to forces the user
defined pixel format for the session.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@271 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/rfbplayer/OptionsDialog.h b/rfbplayer/OptionsDialog.h
index a673844..9bf9bbc 100644
--- a/rfbplayer/OptionsDialog.h
+++ b/rfbplayer/OptionsDialog.h
@@ -102,6 +102,7 @@
index = SendMessage(combo, CB_GETCOUNT, 0, 0) - 1;
}
SendMessage(combo, CB_SETCURSEL, index, 0);
+ options->pixelFormatIndex = index - 1;
}
}
return false;