]> source.dussan.org Git - tigervnc.git/commitdiff
Temporary added constraint of scale filters.
authorgeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Mon, 30 Apr 2007 12:43:31 +0000 (12:43 +0000)
committergeorge82 <george82@3789f03b-4d11-0410-bbf8-ca57d06f2519>
Mon, 30 Apr 2007 12:43:31 +0000 (12:43 +0000)
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

index c326645e3b5eaa929b4cfa5e35e37c96e5ec50fa..962767fddd6db43deef7d17c4b2eed8ef46d8d02 100644 (file)
@@ -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;
   }