1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

D2D: Apply physical scale factor inside startFrame

This commit is contained in:
reuk 2024-04-22 16:57:01 +01:00
parent 122b75909e
commit 49dec0a32a
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
2 changed files with 2 additions and 1 deletions

View file

@ -780,6 +780,8 @@ bool Direct2DGraphicsContext::startFrame()
// Init font & brush
setFont (currentState->font);
currentState->updateCurrentBrush();
addTransform (AffineTransform::scale ((float) getPhysicalPixelScaleFactor()));
}
return true;

View file

@ -4778,7 +4778,6 @@ private:
if (direct2DContext->startFrame())
{
direct2DContext->addTransform (AffineTransform::scale ((float) peer.getPlatformScaleFactor()));
peer.handlePaint (*direct2DContext);
direct2DContext->endFrame();