Skip to content

Commit 2c90c9b

Browse files
author
ArthurHub
committed
set SnapsToDevicePixels to false
1 parent 928a4fd commit 2c90c9b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/HtmlRenderer.WPF/HtmlControl.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,14 @@ public class HtmlControl : Control
9090
#endregion
9191

9292

93-
9493
/// <summary>
9594
/// Creates a new HtmlPanel and sets a basic css for it's styling.
9695
/// </summary>
9796
protected HtmlControl()
9897
{
98+
// shitty WPF rendering, have no idea why this actually makes everything sharper =/
99+
SnapsToDevicePixels = false;
100+
99101
_htmlContainer = new HtmlContainer();
100102
_htmlContainer.LinkClicked += OnLinkClicked;
101103
_htmlContainer.RenderError += OnRenderError;

0 commit comments

Comments
 (0)