diff --git a/Core/Notification/Screenshot/FormNotificationScreenshotable.cs b/Core/Notification/Screenshot/FormNotificationScreenshotable.cs index 2a4efab5..d86f2dcc 100644 --- a/Core/Notification/Screenshot/FormNotificationScreenshotable.cs +++ b/Core/Notification/Screenshot/FormNotificationScreenshotable.cs @@ -48,7 +48,7 @@ protected override string GetTweetHTML(TweetNotification tweet){ } private void SetScreenshotHeight(int height){ - SetNotificationSize(width, height); // TODO test how it works on high DPI, probably not great? + SetNotificationSize(width, height); } public void TakeScreenshot(){ diff --git a/Resources/Scripts/screenshot.js b/Resources/Scripts/screenshot.js index 65696805..9d6ea716 100644 --- a/Resources/Scripts/screenshot.js +++ b/Resources/Scripts/screenshot.js @@ -1,6 +1,6 @@ (function($TD){ let ele = document.getElementsByTagName("article")[0]; - ele.style.width = window.outerWidth+"px"; + ele.style.width = Math.floor(window.outerWidth/window.devicePixelRatio)+"px"; ele.style.position = "absolute"; let contentHeight = ele.offsetHeight;