Skip to content

Commit b6a4c8a

Browse files
committed
Compilation fix
1 parent 8409a98 commit b6a4c8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/NVGSurface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ void NVGSurface::render()
309309

310310
auto pixelScale = calculateRenderScale();
311311
auto const desktopScale = Desktop::getInstance().getGlobalScaleFactor();
312-
312+
auto const devicePixelScale = pixelScale / desktopScale;
313+
313314
if (std::abs(lastRenderScale - pixelScale) > 0.1f) {
314315
detachContext();
315316
initialise();
@@ -322,7 +323,6 @@ void NVGSurface::render()
322323
return;
323324
}
324325

325-
auto const devicePixelScale = pixelScale / desktopScale;
326326
auto viewWidth = getWidth() * devicePixelScale;
327327
auto viewHeight = getHeight() * devicePixelScale;
328328
#else

0 commit comments

Comments
 (0)