mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2025-03-30 11:31:32 +00:00
fix minimum size, set resize incremements.
git-svn-id: svn://qnap.local/TwoTerm/trunk@1996 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
f8c51408c5
commit
65c45db2dc
@ -152,6 +152,7 @@
|
||||
|
||||
[_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO];
|
||||
|
||||
|
||||
if (![_emulator resizable])
|
||||
{
|
||||
|
||||
@ -183,8 +184,16 @@
|
||||
Class klass;
|
||||
id o;
|
||||
|
||||
NSWindow *window;
|
||||
|
||||
[super windowDidLoad];
|
||||
|
||||
window = [self window];
|
||||
|
||||
// resize in 2.0 he ight increments to prevent jittering the scan lines.
|
||||
[window setResizeIncrements: NSMakeSize(1.0, 2.0)];
|
||||
|
||||
|
||||
klass = [_parameters objectForKey: kClass];
|
||||
if (!klass || ![klass conformsToProtocol: @protocol(Emulator)])
|
||||
{
|
||||
@ -216,6 +225,8 @@
|
||||
//[_curveView setColor: [NSColor blueColor]];
|
||||
|
||||
[self initPTY];
|
||||
|
||||
[window setMinSize: [window frame].size];
|
||||
}
|
||||
|
||||
-(void)windowWillClose:(NSNotification *)notification
|
||||
|
Loading…
x
Reference in New Issue
Block a user