mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 875441 - Don't keep reapplying the 2x scale in HiDPI mode when drawing the titlebar buttons. r=mattwoodrow
This commit is contained in:
parent
1347de0113
commit
b7401674b3
@ -2057,6 +2057,7 @@ nsChildView::UpdateTitlebarImageBuffer()
|
||||
ClearRegion(mTitlebarImageBuffer, dirtyTitlebarRegion);
|
||||
|
||||
CGContextRef ctx = mTitlebarImageBuffer->GetCGContext();
|
||||
CGContextSaveGState(ctx);
|
||||
|
||||
double scale = BackingScaleFactor();
|
||||
CGContextScaleCTM(ctx, scale, scale);
|
||||
@ -2113,6 +2114,7 @@ nsChildView::UpdateTitlebarImageBuffer()
|
||||
DevPixelsToCocoaPoints(1));
|
||||
|
||||
[NSGraphicsContext setCurrentContext:oldContext];
|
||||
CGContextRestoreGState(ctx);
|
||||
|
||||
mUpdatedTitlebarRegion.Or(mUpdatedTitlebarRegion, dirtyTitlebarRegion);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user