summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-04-30 12:43:31 +0000
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>2007-04-30 12:43:31 +0000
commit6e7755a63d92e965c330e85ab4a21cb8424b51ad (patch)
treee432dee4f7e251c345bfe7179be2da794fb9ccbf /win
parenta9a3387d03d83dbe43fb6e005209952e22f9e1fc (diff)
downloadtigervnc-6e7755a63d92e965c330e85ab4a21cb8424b51ad.tar.gz
tigervnc-6e7755a63d92e965c330e85ab4a21cb8424b51ad.zip
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
Diffstat (limited to 'win')
-rw-r--r--win/vncviewer/OptionsDialog.cxx7
1 files changed, 6 insertions, 1 deletions
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;
}