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:
parent
122b75909e
commit
49dec0a32a
2 changed files with 2 additions and 1 deletions
|
|
@ -780,6 +780,8 @@ bool Direct2DGraphicsContext::startFrame()
|
|||
// Init font & brush
|
||||
setFont (currentState->font);
|
||||
currentState->updateCurrentBrush();
|
||||
|
||||
addTransform (AffineTransform::scale ((float) getPhysicalPixelScaleFactor()));
|
||||
}
|
||||
|
||||
return true;
|
||||
|
|
|
|||
|
|
@ -4778,7 +4778,6 @@ private:
|
|||
|
||||
if (direct2DContext->startFrame())
|
||||
{
|
||||
direct2DContext->addTransform (AffineTransform::scale ((float) peer.getPlatformScaleFactor()));
|
||||
peer.handlePaint (*direct2DContext);
|
||||
direct2DContext->endFrame();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue