mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
[qwaq] Set view owner when setting proxy view
This fixes the debug editor's redraw issues.
This commit is contained in:
parent
5bb71c2089
commit
17da19b979
1 changed files with 2 additions and 0 deletions
|
@ -39,11 +39,13 @@
|
||||||
}
|
}
|
||||||
[self.view hide];
|
[self.view hide];
|
||||||
[self.view setContext:nil];
|
[self.view setContext:nil];
|
||||||
|
[self.view setOwner:nil];
|
||||||
|
|
||||||
[view retain];
|
[view retain];
|
||||||
[self.view release];
|
[self.view release];
|
||||||
self.view = view;
|
self.view = view;
|
||||||
|
|
||||||
|
[view setOwner:owner];
|
||||||
[view setContext:[owner context]];
|
[view setContext:[owner context]];
|
||||||
if (state & sfDrawn) {
|
if (state & sfDrawn) {
|
||||||
[view draw];
|
[view draw];
|
||||||
|
|
Loading…
Reference in a new issue