We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc1241f commit 4e897b9Copy full SHA for 4e897b9
src/WinWebDiffLib/WebWindow.hpp
@@ -505,8 +505,11 @@ class CWebWindow
505
506
WDocument document;
507
document.Parse(returnObjectAsJson);
508
- int width = document[L"cssContentSize"][L"width"].GetInt();
509
- int height = document[L"cssContentSize"][L"height"].GetInt();
+ UINT dpi = GetDpiForWindow(m_hWnd);
+ int width = document[L"cssContentSize"][L"width"].GetInt()
510
+ * dpi / 96;
511
+ int height = document[L"cssContentSize"][L"height"].GetInt()
512
513
514
if (fullSize)
515
{
0 commit comments