Browse Source
Merge branch 'master' into fix-animation-repeat-modes
pull/2163/head
Jumar Macato
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
12 additions and
4 deletions
-
nukebuild/.editorconfig
-
src/Windows/Avalonia.Win32/WindowImpl.cs
|
|
|
@ -0,0 +1,8 @@ |
|
|
|
# editorconfig.org |
|
|
|
|
|
|
|
# top-most EditorConfig file |
|
|
|
root = false |
|
|
|
|
|
|
|
# C# files |
|
|
|
[*.cs] |
|
|
|
dotnet_style_require_accessibility_modifiers = never |
|
|
|
@ -281,10 +281,10 @@ namespace Avalonia.Win32 |
|
|
|
var f = Scaling; |
|
|
|
var r = new UnmanagedMethods.RECT |
|
|
|
{ |
|
|
|
left = (int)(rect.X * f), |
|
|
|
top = (int)(rect.Y * f), |
|
|
|
right = (int)(rect.Right * f), |
|
|
|
bottom = (int)(rect.Bottom * f), |
|
|
|
left = (int)Math.Floor(rect.X * f), |
|
|
|
top = (int)Math.Floor(rect.Y * f), |
|
|
|
right = (int)Math.Ceiling(rect.Right * f), |
|
|
|
bottom = (int)Math.Ceiling(rect.Bottom * f), |
|
|
|
}; |
|
|
|
|
|
|
|
UnmanagedMethods.InvalidateRect(_hwnd, ref r, false); |
|
|
|
|