OSDN Git Service

特定のサイズで大きさが同じにもかかわらずレンダーの再構築が行われてしまうバグを修正した
authorkonekoneko <test2214@hotmail.co.jp>
Tue, 10 Feb 2015 16:52:43 +0000 (01:52 +0900)
committerkonekoneko <test2214@hotmail.co.jp>
Tue, 10 Feb 2015 16:52:43 +0000 (01:52 +0900)
WPF/FooEditEngine/Direct2D/D2DRender.cs

index 5577bf4..9b22b2e 100644 (file)
@@ -134,7 +134,7 @@ namespace FooEditEngine.WPF
 
         public bool Resize(double width, double height)
         {
-            if (width != this.imageSource.Width || height != this.imageSource.Height)
+            if (Math.Round(width) != Math.Round(this.imageSource.Width) || Math.Round(height) != Math.Round(this.imageSource.Height))
             {
                 this.ReConstructDeviceResource(width, height);
                 this.imageSource.Lock();