mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-24 19:23:00 +00:00
[qwaq] Use self where possible for drawing in Window
This commit is contained in:
parent
bea64838cc
commit
d0a249590c
1 changed files with 4 additions and 3 deletions
|
@ -19,6 +19,7 @@
|
|||
}
|
||||
self.rect = rect;
|
||||
buffer = [[TextContext alloc] initWithRect: rect];
|
||||
textContext = buffer;
|
||||
panel = create_panel ([buffer window]);
|
||||
return self;
|
||||
}
|
||||
|
@ -96,9 +97,9 @@
|
|||
for (int i = 32; i <= 127; i++) {
|
||||
int ch = acs_char (i);
|
||||
if (ch) {
|
||||
[buffer mvaddch: pos, ch];
|
||||
[self mvaddch: pos, ch];
|
||||
} else {
|
||||
[buffer mvaddch: pos, '.'];
|
||||
[self mvaddch: pos, '.'];
|
||||
}
|
||||
if (++pos.x > 32) {
|
||||
pos.x = 1;
|
||||
|
@ -107,7 +108,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
[buffer refresh];
|
||||
[self refresh];
|
||||
return self;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue