-displaySize

git-svn-id: svn://qnap.local/TwoTerm/trunk@3179 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2017-02-25 18:28:55 +00:00
parent 4363682e49
commit 8b59e647d0
2 changed files with 5 additions and 0 deletions

View File

@ -43,6 +43,8 @@ extern "C" unsigned EventCharacters(NSEvent *event, std::u32string &rv);
-(void)processCharacter: (uint8_t)c screen: (Screen *)screen output: (OutputChannel *)output;
-(void)processData: (uint8_t *)data length: (size_t)length screen: (Screen *)screen output: (OutputChannel *)output;
-(struct winsize)displaySize;
@required
-(void)keyDown: (NSEvent *)event screen: (Screen *)screen output: (OutputChannel *)output;

View File

@ -150,6 +150,9 @@
}
if ([_emulator respondsToSelector: @selector(displaySize)]) {
ws = [_emulator displaySize];
}
[_emulatorView resizeTo: iSize(ws.ws_col, ws.ws_row) animated: NO];