Revision: 15203 http://sourceforge.net/p/skim-app/code/15203 Author: hofman Date: 2025-05-13 15:30:36 +0000 (Tue, 13 May 2025) Log Message: ----------- Make sure page layer inherits contents scale from window
Modified Paths: -------------- trunk/SKPresentationView.m Modified: trunk/SKPresentationView.m =================================================================== --- trunk/SKPresentationView.m 2025-05-12 21:22:51 UTC (rev 15202) +++ trunk/SKPresentationView.m 2025-05-13 15:30:36 UTC (rev 15203) @@ -103,6 +103,7 @@ [layer setMasksToBounds:YES]; [layer setFrame:NSRectToCGRect([self bounds])]; [layer setActions:@{@"contents": [NSNull null]}]; + [layer setDelegate:self]; pageView = [[NSView alloc] initWithFrame:[self bounds]]; [pageView setLayer:layer]; [pageView setWantsLayer:YES]; @@ -327,6 +328,10 @@ return [super bitmapImageRepCachingDisplay]; } +- (BOOL)layer:(CALayer *)layer shouldInheritContentsScale:(CGFloat)newScale fromWindow:(NSWindow *)window { + return YES; +} + @end #pragma mark - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit