Camino only - Bug 399731 - Fix tab background drawing under UI scaling. Patch by Ben Willmore <bdeb@willmore.eu>. r=smorgan sr=pink

git-svn-id: svn://10.0.0.236/trunk@238210 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
stuart.morgan%alumni.case.edu
2007-10-26 17:59:11 +00:00
parent 97c0e926ac
commit 53652a1a78
2 changed files with 2 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ static const float kScrollButtonInterval = 0.15; // time (in seconds) between f
{
// draw tab bar background, omitting the selected Tab
NSRect barFrame = [self bounds];
NSPoint patternOrigin = [self convertPoint:NSMakePoint(0.0f, 0.0f) toView:nil];
NSPoint patternOrigin = [self convertPoint:NSMakePoint(0.0f, 0.0f) toView:[[self window] contentView]];
NSRect fillRect;
// first, fill to the left of the active tab

View File

@@ -138,7 +138,7 @@ static NSImage* gTabButtonDividerImage = nil;
[gTabButtonDividerImage compositeToPoint:NSMakePoint(NSMaxX(rect), rect.origin.y) operation:NSCompositeSourceOver];
}
NSPoint patternOrigin = [controlView convertPoint:NSMakePoint(0.0f, 0.0f) toView:nil];
NSPoint patternOrigin = [controlView convertPoint:NSMakePoint(0.0f, 0.0f) toView:[[controlView window] contentView]];
NSWindow *window = [[mTabViewItem tabView] window];
if ([mTabViewItem tabState] == NSSelectedTab) {
// move things down a little, to give the impression of being pulled forward