mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 08:27:39 +00:00
32 lines
378 B
R
32 lines
378 B
R
#include "qwaq-curses.h"
|
|
#include "qwaq-screen.h"
|
|
|
|
@implementation Screen
|
|
+(Screen *) screen
|
|
{
|
|
return [[[self alloc] init] autorelease];
|
|
}
|
|
|
|
-init
|
|
{
|
|
if (!(self = [super init])) {
|
|
return nil;
|
|
}
|
|
window = stdscr;
|
|
rect = getwrect (window);
|
|
return self;
|
|
}
|
|
|
|
-add: obj
|
|
{
|
|
return self;
|
|
}
|
|
|
|
-setBackground: (int) ch
|
|
{
|
|
wbkgd (window, ch);
|
|
wrefresh (window);
|
|
return self;
|
|
}
|
|
|
|
@end
|