[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 283f983: Fix frame contents scaling bug on macOS (bug#46155)
From: |
Alan Third |
Subject: |
master 283f983: Fix frame contents scaling bug on macOS (bug#46155) |
Date: |
Fri, 19 Feb 2021 14:37:30 -0500 (EST) |
branch: master
commit 283f98353fe3549ac8f66a3ab8fba85d93c81a88
Author: Alan Third <alan@idiocy.org>
Commit: Alan Third <alan@idiocy.org>
Fix frame contents scaling bug on macOS (bug#46155)
Discussion in bug#46406.
* src/nsterm.m ([EmacsView focusOnDrawingBuffer:]): Set the scale
factor for the backing layer.
---
src/nsterm.m | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/nsterm.m b/src/nsterm.m
index b0cf595..6551694 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -8377,6 +8377,11 @@ not_in_argv (NSString *arg)
surface = [[EmacsSurface alloc] initWithSize:s
ColorSpace:[[[self window] colorSpace]
CGColorSpace]];
+
+ /* Since we're using NSViewLayerContentsRedrawOnSetNeedsDisplay
+ the layer's scale factor is not set automatically, so do it
+ now. */
+ [[self layer] setContentsScale:[[self window] backingScaleFactor]];
}
CGContextRef context = [surface getContext];
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 283f983: Fix frame contents scaling bug on macOS (bug#46155),
Alan Third <=