mirror of
https://github.com/gnustep/apps-projectcenter.git
synced 2025-02-19 18:11:31 +00:00
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:
parent
078e0502af
commit
360e820370
2 changed files with 11 additions and 1 deletions
|
@ -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
|
* Modules/Debuggers/ProjectCenter/PTYView.m
|
||||||
NetBSD doesn't support streams either.
|
NetBSD doesn't support streams either.
|
||||||
|
|
|
@ -434,6 +434,7 @@
|
||||||
// from/to superview
|
// from/to superview
|
||||||
RETAIN(h_split);
|
RETAIN(h_split);
|
||||||
[h_split removeFromSuperview];
|
[h_split removeFromSuperview];
|
||||||
|
rect = [cView centerScanRect: rect];
|
||||||
[h_split setFrame:rect];
|
[h_split setFrame:rect];
|
||||||
[cView addSubview:h_split];
|
[cView addSubview:h_split];
|
||||||
RELEASE(h_split);
|
RELEASE(h_split);
|
||||||
|
@ -447,6 +448,7 @@
|
||||||
RETAIN(v_split);
|
RETAIN(v_split);
|
||||||
[v_split removeFromSuperview];
|
[v_split removeFromSuperview];
|
||||||
[v_split setFrame:rect];
|
[v_split setFrame:rect];
|
||||||
|
rect = [cView centerScanRect: rect];
|
||||||
[cView addSubview:v_split];
|
[cView addSubview:v_split];
|
||||||
RELEASE(v_split);
|
RELEASE(v_split);
|
||||||
}
|
}
|
||||||
|
@ -471,6 +473,7 @@
|
||||||
// Hack. See above
|
// Hack. See above
|
||||||
RETAIN(h_split);
|
RETAIN(h_split);
|
||||||
[h_split removeFromSuperview];
|
[h_split removeFromSuperview];
|
||||||
|
rect = [cView centerScanRect: rect];
|
||||||
[h_split setFrame:rect];
|
[h_split setFrame:rect];
|
||||||
[cView addSubview:h_split];
|
[cView addSubview:h_split];
|
||||||
RELEASE(h_split);
|
RELEASE(h_split);
|
||||||
|
@ -891,6 +894,7 @@
|
||||||
{*/
|
{*/
|
||||||
vSplitRect.size.width = hSplitSize.width;
|
vSplitRect.size.width = hSplitSize.width;
|
||||||
/* }*/
|
/* }*/
|
||||||
|
vSplitRect = [browserView centerScanRect: vSplitRect];
|
||||||
[v_split setFrame:vSplitRect];
|
[v_split setFrame:vSplitRect];
|
||||||
|
|
||||||
// Custom view (Editor|Builder|Launcher)
|
// Custom view (Editor|Builder|Launcher)
|
||||||
|
@ -900,6 +904,7 @@
|
||||||
boxRect.origin.y = vSplitRect.size.height + [h_split dividerThickness];
|
boxRect.origin.y = vSplitRect.size.height + [h_split dividerThickness];
|
||||||
boxRect.size.width = hSplitSize.width;
|
boxRect.size.width = hSplitSize.width;
|
||||||
boxRect.size.height = hSplitSize.height - boxRect.origin.y;
|
boxRect.size.height = hSplitSize.height - boxRect.origin.y;
|
||||||
|
boxRect = [customView centerScanRect: boxRect];
|
||||||
[customView setFrame:boxRect];
|
[customView setFrame:boxRect];
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue