From 6e7755a63d92e965c330e85ab4a21cb8424b51ad Mon Sep 17 00:00:00 2001 From: george82 Date: Mon, 30 Apr 2007 12:43:31 +0000 Subject: [PATCH] Temporary added constraint of scale filters. Now supported bilinear and bicubic scale filters. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2290 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/vncviewer/OptionsDialog.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/win/vncviewer/OptionsDialog.cxx b/win/vncviewer/OptionsDialog.cxx index c326645e..962767fd 100644 --- a/win/vncviewer/OptionsDialog.cxx +++ b/win/vncviewer/OptionsDialog.cxx @@ -205,7 +205,12 @@ public: dlg->options.autoScaling = true; } } - dlg->options.scaleFilter = SendMessage(GetDlgItem(handle, IDC_COMBO_SCALE_FILTER), CB_GETCURSEL, 0, 0); + int scaleFilterID = SendMessage(GetDlgItem(handle, IDC_COMBO_SCALE_FILTER), CB_GETCURSEL, 0, 0); + if (scaleFilterID != rfb::scaleFilterBilinear && scaleFilterID != rfb::scaleFilterBicubic) { + MsgBox(handle, "Now supported only bilinear and bicubic scale filters.", MB_OK); + } else { + dlg->options.scaleFilter = SendMessage(GetDlgItem(handle, IDC_COMBO_SCALE_FILTER), CB_GETCURSEL, 0, 0); + } ((ViewerOptions*)propSheet)->setChanged(); return true; } -- 2.39.5