From 57160b0fc45ad4ee81a6bfa7ab668eba9071a357 Mon Sep 17 00:00:00 2001 From: george82 Date: Mon, 11 Sep 2006 04:11:51 +0000 Subject: [PATCH] Added the new scale values (10, 200) to the vncviewer options scale combo-box. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@657 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/OptionsDialog.cxx | 6 +++--- win/vncviewer/vncviewer.rc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/win/vncviewer/OptionsDialog.cxx b/win/vncviewer/OptionsDialog.cxx index af112ee7..c4bf401e 100644 --- a/win/vncviewer/OptionsDialog.cxx +++ b/win/vncviewer/OptionsDialog.cxx @@ -163,11 +163,11 @@ public: setItemChecked(IDC_ACCEPT_BELL, dlg->options.acceptBell); setItemChecked(IDC_AUTO_RECONNECT, dlg->options.autoReconnect); setItemChecked(IDC_SHOW_TOOLBAR, dlg->options.showToolbar); - char scale_values[8][20] = { - "25","50","75","90","100","125","150","Auto" + char scale_values[10][20] = { + "10","25","50","75","90","100","125","150","200","Auto" }; HWND hScaleCombo = GetDlgItem(handle, IDC_COMBO_SCALE); - for (int i = 0; i <= 7; i++) { + for (int i = 0; i <= 9; i++) { SendMessage(hScaleCombo, CB_INSERTSTRING, (WPARAM)i, (LPARAM)(int FAR*)scale_values[i]); } diff --git a/win/vncviewer/vncviewer.rc b/win/vncviewer/vncviewer.rc index d85329f6..bf8a8252 100644 --- a/win/vncviewer/vncviewer.rc +++ b/win/vncviewer/vncviewer.rc @@ -233,7 +233,7 @@ BEGIN CONTROL "Offer to automatically reconnect",IDC_AUTO_RECONNECT, "Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,100,199,15 LTEXT "Scale by:",IDC_STATIC_SCALE,106,40,34,15,SS_CENTERIMAGE - COMBOBOX IDC_COMBO_SCALE,140,40,40,90,CBS_DROPDOWN | CBS_SORT | + COMBOBOX IDC_COMBO_SCALE,140,40,40,134,CBS_DROPDOWN | CBS_SORT | WS_VSCROLL | WS_TABSTOP LTEXT "%",IDC_STATIC_PERCENT,185,40,21,15,SS_CENTERIMAGE END -- 2.39.5