character size from chargen.

git-svn-id: svn://qnap.local/TwoTerm/trunk@2007 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
Kelvin Sherlock 2011-01-22 18:29:40 +00:00
parent c9aa73af1f
commit 1395f24c2a

View File

@ -45,6 +45,8 @@
-(void)awakeFromNib
{
NSSize size;
_charWidth = 7;
_charHeight = 16;
@ -67,7 +69,10 @@
_cursorImg = [[_charGen imageForCharacter: '_'] retain];
size = [_charGen characterSize];
_charWidth = size.width;
_charHeight = size.height;
// enable drag+drop for files/urls.
@ -113,11 +118,7 @@
//add the scanlines (which are vertical and must therfore be rotated
filter = [[ScanLineFilter new] autorelease];
[filter setValue: [NSNumber numberWithFloat: 0.66] forKey: @"inputOpacity"];
[filters addObject: filter];
//blur it a bit...
@ -126,6 +127,13 @@
[filter setValue: [NSNumber numberWithFloat: 0.33] forKey: @"inputRadius"];
[filters addObject: filter];
//add the scanlines
filter = [[ScanLineFilter new] autorelease];
[filter setValue: [NSNumber numberWithFloat: 0.1] forKey: @"inputStrength"];
[filters addObject: filter];
[self setContentFilters: filters];
}
@ -345,6 +353,9 @@
iRect updateRect; // should be nil but whatever...
[NSCursor setHiddenUntilMouseMoves: YES];
_screen.beginUpdate();
[_emulator keyDown: theEvent screen: &_screen output: &channel];