diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsterm.m | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m index b0cf5952fd5..6551694abee 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -8377,6 +8377,11 @@ not_in_argv (NSString *arg) | |||
| 8377 | surface = [[EmacsSurface alloc] initWithSize:s | 8377 | surface = [[EmacsSurface alloc] initWithSize:s |
| 8378 | ColorSpace:[[[self window] colorSpace] | 8378 | ColorSpace:[[[self window] colorSpace] |
| 8379 | CGColorSpace]]; | 8379 | CGColorSpace]]; |
| 8380 | |||
| 8381 | /* Since we're using NSViewLayerContentsRedrawOnSetNeedsDisplay | ||
| 8382 | the layer's scale factor is not set automatically, so do it | ||
| 8383 | now. */ | ||
| 8384 | [[self layer] setContentsScale:[[self window] backingScaleFactor]]; | ||
| 8380 | } | 8385 | } |
| 8381 | 8386 | ||
| 8382 | CGContextRef context = [surface getContext]; | 8387 | CGContextRef context = [surface getContext]; |