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
|
- (of_unichar_t)character
|
||||||
{
|
{
|
||||||
if (event.keyboard.unichar < 1)
|
if (event.keyboard.unichar < 1)
|
||||||
return 0xFFFD;
|
return 0;
|
||||||
|
|
||||||
return event.keyboard.unichar;
|
return event.keyboard.unichar;
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,6 @@
|
||||||
OGKBitmap *bitmap;
|
OGKBitmap *bitmap;
|
||||||
of_point_t position;
|
of_point_t position;
|
||||||
of_dimension_t scale;
|
of_dimension_t scale;
|
||||||
BOOL running;
|
|
||||||
ogk_rotation_t rotation;
|
ogk_rotation_t rotation;
|
||||||
ogk_color_t tint;
|
ogk_color_t tint;
|
||||||
OFThread *animationThread;
|
OFThread *animationThread;
|
||||||
|
|
|
@ -36,7 +36,7 @@ OF_APPLICATION_DELEGATE(TestMain)
|
||||||
- (void)display: (OGKDisplay*)display
|
- (void)display: (OGKDisplay*)display
|
||||||
wasClosed: (OGKCloseEvent*)event
|
wasClosed: (OGKCloseEvent*)event
|
||||||
{
|
{
|
||||||
running = NO;
|
[OFApplication terminate];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)keyWasPressed: (OGKKeyPressEvent*)event
|
- (void)keyWasPressed: (OGKKeyPressEvent*)event
|
||||||
|
@ -80,7 +80,7 @@ OF_APPLICATION_DELEGATE(TestMain)
|
||||||
[self toggleAnimation];
|
[self toggleAnimation];
|
||||||
break;
|
break;
|
||||||
case OGK_KEY_Q:
|
case OGK_KEY_Q:
|
||||||
running = NO;
|
[OFApplication terminate];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -191,7 +191,7 @@ OF_APPLICATION_DELEGATE(TestMain)
|
||||||
0);
|
0);
|
||||||
tint = ogk_color(1, 1, 1, 0);
|
tint = ogk_color(1, 1, 1, 0);
|
||||||
|
|
||||||
for (running = YES; running;) {
|
for (;;) {
|
||||||
@autoreleasepool {
|
@autoreleasepool {
|
||||||
[self handleEvents];
|
[self handleEvents];
|
||||||
[self draw];
|
[self draw];
|
||||||
|
|
Reference in a new issue