mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
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:
parent
f159a871ca
commit
63a9df5844
5 changed files with 42 additions and 35 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue