OSDN Git Service
(root)
/
fooeditengine
/
FooEditEngine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc0c81e
)
特定のサイズで大きさが同じにもかかわらずレンダーの再構築が行われてしまうバグを修正した
author
konekoneko
<test2214@hotmail.co.jp>
Tue, 10 Feb 2015 16:52:43 +0000
(
01:52
+0900)
committer
konekoneko
<test2214@hotmail.co.jp>
Tue, 10 Feb 2015 16:52:43 +0000
(
01:52
+0900)
WPF/FooEditEngine/Direct2D/D2DRender.cs
patch
|
blob
|
history
diff --git
a/WPF/FooEditEngine/Direct2D/D2DRender.cs
b/WPF/FooEditEngine/Direct2D/D2DRender.cs
index
5577bf4
..
9b22b2e
100644
(file)
--- a/
WPF/FooEditEngine/Direct2D/D2DRender.cs
+++ b/
WPF/FooEditEngine/Direct2D/D2DRender.cs
@@
-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();