Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/xwt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez <lluis@xamarin.com>2013-12-12 12:24:19 +0400
committerLluis Sanchez <lluis@xamarin.com>2013-12-12 12:24:19 +0400
commit97e388368f673af4bda723689c16cab2cc0a64a8 (patch)
treefed91d8dfb8f63a95ff4e6cc85af075c8fb53824 /Xwt.WPF
parenta8e5cbb0351faf69b823eab97a697db2ec264e72 (diff)
[WPF] Additional fix for image patterns
Diffstat (limited to 'Xwt.WPF')
-rw-r--r--Xwt.WPF/Xwt.WPFBackend/ImagePatternBackendHandler.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Xwt.WPF/Xwt.WPFBackend/ImagePatternBackendHandler.cs b/Xwt.WPF/Xwt.WPFBackend/ImagePatternBackendHandler.cs
index 091e5ff8..47bc9ccb 100644
--- a/Xwt.WPF/Xwt.WPFBackend/ImagePatternBackendHandler.cs
+++ b/Xwt.WPF/Xwt.WPFBackend/ImagePatternBackendHandler.cs
@@ -70,10 +70,10 @@ namespace Xwt.WPFBackend
AlignmentY = System.Windows.Media.AlignmentY.Top,
AlignmentX = System.Windows.Media.AlignmentX.Left,
Stretch = System.Windows.Media.Stretch.None,
- Viewport = new System.Windows.Rect(0, 0, image.Size.Width, image.Size.Height),
+ Viewport = new System.Windows.Rect(0, 0, bmp.Width, bmp.Height),
Opacity = image.Alpha
};
- brush.RelativeTransform = new ScaleTransform(image.Size.Width / bmp.Width, image.Size.Height / bmp.Height);
+ brush.RelativeTransform = new ScaleTransform(image.Size.Width / bmp.Width, image.Size.Height / bmp.Height);
}
return brush;
}