mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38:55 +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{
|
- (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
Loading…
Reference in New Issue
Block a user