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 8409a98 commit b6a4c8aCopy full SHA for b6a4c8a
Source/NVGSurface.cpp
@@ -309,7 +309,8 @@ void NVGSurface::render()
309
310
auto pixelScale = calculateRenderScale();
311
auto const desktopScale = Desktop::getInstance().getGlobalScaleFactor();
312
-
+ auto const devicePixelScale = pixelScale / desktopScale;
313
+
314
if (std::abs(lastRenderScale - pixelScale) > 0.1f) {
315
detachContext();
316
initialise();
@@ -322,7 +323,6 @@ void NVGSurface::render()
322
323
return;
324
}
325
- auto const devicePixelScale = pixelScale / desktopScale;
326
auto viewWidth = getWidth() * devicePixelScale;
327
auto viewHeight = getHeight() * devicePixelScale;
328
#else
0 commit comments