Adjust to ObjFW change.
Applications don't terminate after applicationDidFinishLaunching anymore.
This commit is contained in:
parent
41f4494b98
commit
4121600ce0
3 changed files with 4 additions and 5 deletions
|
@ -47,7 +47,7 @@
|
|||
- (of_unichar_t)character
|
||||
{
|
||||
if (event.keyboard.unichar < 1)
|
||||
return 0xFFFD;
|
||||
return 0;
|
||||
|
||||
return event.keyboard.unichar;
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@
|
|||
OGKBitmap *bitmap;
|
||||
of_point_t position;
|
||||
of_dimension_t scale;
|
||||
BOOL running;
|
||||
ogk_rotation_t rotation;
|
||||
ogk_color_t tint;
|
||||
OFThread *animationThread;
|
||||
|
|
|
@ -36,7 +36,7 @@ OF_APPLICATION_DELEGATE(TestMain)
|
|||
- (void)display: (OGKDisplay*)display
|
||||
wasClosed: (OGKCloseEvent*)event
|
||||
{
|
||||
running = NO;
|
||||
[OFApplication terminate];
|
||||
}
|
||||
|
||||
- (void)keyWasPressed: (OGKKeyPressEvent*)event
|
||||
|
@ -80,7 +80,7 @@ OF_APPLICATION_DELEGATE(TestMain)
|
|||
[self toggleAnimation];
|
||||
break;
|
||||
case OGK_KEY_Q:
|
||||
running = NO;
|
||||
[OFApplication terminate];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -191,7 +191,7 @@ OF_APPLICATION_DELEGATE(TestMain)
|
|||
0);
|
||||
tint = ogk_color(1, 1, 1, 0);
|
||||
|
||||
for (running = YES; running;) {
|
||||
for (;;) {
|
||||
@autoreleasepool {
|
||||
[self handleEvents];
|
||||
[self draw];
|
||||
|
|
Reference in a new issue