浏览代码

Fix GetPaletteBuilder

tznind 10 月之前
父节点
当前提交
fd7f994a58
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      UICatalog/Scenarios/Images.cs

+ 2 - 2
UICatalog/Scenarios/Images.cs

@@ -425,8 +425,8 @@ public class Images : Scenario
     {
         switch (_rgPaletteBuilder.SelectedItem)
         {
-            case 0: return new MedianCutPaletteBuilder (GetDistanceAlgorithm ());
-            case 1: return new PopularityPaletteWithThreshold (GetDistanceAlgorithm (), _popularityThreshold.Value);
+            case 0: return new PopularityPaletteWithThreshold (GetDistanceAlgorithm (), _popularityThreshold.Value);
+            case 1: return new MedianCutPaletteBuilder (GetDistanceAlgorithm ());
             default: throw new ArgumentOutOfRangeException ();
         }
     }