Adjust to ObjFW change.

Applications don't terminate after applicationDidFinishLaunching
anymore.
This commit is contained in:
Jonathan Schleifer 2012-09-09 15:18:07 +02:00
parent 41f4494b98
commit 4121600ce0
3 changed files with 4 additions and 5 deletions

View file

@ -47,7 +47,7 @@
- (of_unichar_t)character
{
if (event.keyboard.unichar < 1)
return 0xFFFD;
return 0;
return event.keyboard.unichar;
}

View file

@ -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;

View file

@ -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];