Use centerScanRect to avoid strange problems with AA text in editor.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@35197 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Riccardo Mottola 2012-06-12 10:41:19 +00:00
parent 078e0502af
commit 360e820370
2 changed files with 11 additions and 1 deletions

View file

@ -1,4 +1,9 @@
2012-04-20 Riccardo Motto.a <rm@gnu.org>
2012-06-12 Riccardo Mottola <rm@gnu.org>
* Framework/PCProjectWindow.m
Use centerScanRect to avoid strange problems with AA text in editor.
2012-04-20 Riccardo Mottola <rm@gnu.org>
* Modules/Debuggers/ProjectCenter/PTYView.m
NetBSD doesn't support streams either.

View file

@ -434,6 +434,7 @@
// from/to superview
RETAIN(h_split);
[h_split removeFromSuperview];
rect = [cView centerScanRect: rect];
[h_split setFrame:rect];
[cView addSubview:h_split];
RELEASE(h_split);
@ -447,6 +448,7 @@
RETAIN(v_split);
[v_split removeFromSuperview];
[v_split setFrame:rect];
rect = [cView centerScanRect: rect];
[cView addSubview:v_split];
RELEASE(v_split);
}
@ -471,6 +473,7 @@
// Hack. See above
RETAIN(h_split);
[h_split removeFromSuperview];
rect = [cView centerScanRect: rect];
[h_split setFrame:rect];
[cView addSubview:h_split];
RELEASE(h_split);
@ -891,6 +894,7 @@
{*/
vSplitRect.size.width = hSplitSize.width;
/* }*/
vSplitRect = [browserView centerScanRect: vSplitRect];
[v_split setFrame:vSplitRect];
// Custom view (Editor|Builder|Launcher)
@ -900,6 +904,7 @@
boxRect.origin.y = vSplitRect.size.height + [h_split dividerThickness];
boxRect.size.width = hSplitSize.width;
boxRect.size.height = hSplitSize.height - boxRect.origin.y;
boxRect = [customView centerScanRect: boxRect];
[customView setFrame:boxRect];
// }
}