cmd/ebitenmobile: Refactoring

This commit is contained in:
Hajime Hoshi 2019-09-13 03:26:13 +09:00
parent 16337bb6bf
commit af3b7117c3
2 changed files with 7 additions and 8 deletions

View File

@ -176,6 +176,12 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
} }
- (void)drawFrame{ - (void)drawFrame{
@synchronized(self) {
if (!active_) {
return;
}
}
[[self glkView] setNeedsDisplay]; [[self glkView] setNeedsDisplay];
} }
@ -183,13 +189,6 @@ const objcM = `// Code generated by ebitenmobile. DO NOT EDIT.
if (error_) { if (error_) {
return; return;
} }
@synchronized(self) {
if (!active_) {
return;
}
}
NSError* err = nil; NSError* err = nil;
EbitenmobileviewUpdate(&err); EbitenmobileviewUpdate(&err);
if (err != nil) { if (err != nil) {

File diff suppressed because one or more lines are too long