mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
cmd/ebitenmobile: Refactoring
This commit is contained in:
parent
16337bb6bf
commit
af3b7117c3
@ -176,6 +176,12 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||
}
|
||||
|
||||
- (void)drawFrame{
|
||||
@synchronized(self) {
|
||||
if (!active_) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
[[self glkView] setNeedsDisplay];
|
||||
}
|
||||
|
||||
@ -183,13 +189,6 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
|
||||
if (error_) {
|
||||
return;
|
||||
}
|
||||
|
||||
@synchronized(self) {
|
||||
if (!active_) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
NSError* err = nil;
|
||||
EbitenmobileviewUpdate(&err);
|
||||
if (err != nil) {
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user