Fixed two issues with the adorner resize, sometime the initial value wasn't set and also there were some drawing artifacts. Still needs testing though.

This commit is contained in:
Robin Krom 2020-08-06 22:00:59 +02:00
parent f159a871ca
commit 63a9df5844
5 changed files with 42 additions and 35 deletions

View file

@ -35,6 +35,10 @@ namespace GreenshotPlugin.Core
/// <returns>double</returns>
public static float DpiScaleFactor(uint dpi)
{
if (dpi == 0)
{
dpi = Dpi;
}
return (float)dpi / DefaultScreenDpi;
}