mirror of
https://github.com/ksherlock/TwoTerm.git
synced 2024-09-27 08:54:24 +00:00
character size from chargen.
git-svn-id: svn://qnap.local/TwoTerm/trunk@2007 5590a31f-7b70-45f8-8c82-aa3a8e5f4507
This commit is contained in:
parent
c9aa73af1f
commit
1395f24c2a
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user