Revision: 14229
http://sourceforge.net/p/skim-app/code/14229
Author: hofman
Date: 2024-04-22 15:00:36 +0000 (Mon, 22 Apr 2024)
Log Message:
-----------
draw in bounds rather than dirtyRect to be safe for newer SDKs where
clipToBounds can be NO
Modified Paths:
--------------
trunk/SKNavigationWindow.m
trunk/SKTransitionController.m
Modified: trunk/SKNavigationWindow.m
===================================================================
--- trunk/SKNavigationWindow.m 2024-04-22 09:30:16 UTC (rev 14228)
+++ trunk/SKNavigationWindow.m 2024-04-22 15:00:36 UTC (rev 14229)
@@ -507,7 +507,7 @@
}
- (void)drawRect:(NSRect)rect {
- NSRect textRect = NSInsetRect(rect, LABEL_TEXT_MARGIN, LABEL_TEXT_MARGIN);
+ NSRect textRect = NSInsetRect([self bounds], LABEL_TEXT_MARGIN,
LABEL_TEXT_MARGIN);
NSAttributedString *attrString = [self attributedStringValue];
// draw it 3x to see some shadow
[attrString drawInRect:textRect];
Modified: trunk/SKTransitionController.m
===================================================================
--- trunk/SKTransitionController.m 2024-04-22 09:30:16 UTC (rev 14228)
+++ trunk/SKTransitionController.m 2024-04-22 15:00:36 UTC (rev 14229)
@@ -564,7 +564,7 @@
- (void)drawRect:(NSRect)rect {
[[NSColor blackColor] setFill];
- NSRectFill(rect);
+ NSRectFill([self bounds]);
[image drawInRect:[self bounds] fromRect:extent
operation:NSCompositingOperationSourceOver fraction:1.0];
}
@@ -653,7 +653,7 @@
- (void)drawRect:(NSRect)rect {
if ([metalView alphaValue] <= 0.0) {
[[NSColor blackColor] setFill];
- NSRectFill(rect);
+ NSRectFill([self bounds]);
[image drawInRect:[self bounds] fromRect:extent
operation:NSCompositingOperationSourceOver fraction:1.0];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit