summaryrefslogtreecommitdiff
path: root/examples/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/hello.c')
-rw-r--r--examples/hello.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/examples/hello.c b/examples/hello.c
index d3d74cf..38a0cac 100644
--- a/examples/hello.c
+++ b/examples/hello.c
@@ -1,16 +1,8 @@
/* A complete CPU-rendered window. Build instructions: docs/getting-started.md. */
#include <yasl/app.h>
-
#include <stdio.h>
static bool failed;
-
-static enum yasl_app_result event(void *ud, const struct yasl_event *event)
-{
- (void)ud;
- return event->type == YASL_EVENT_WINDOW_CLOSE ? YASL_APP_QUIT : YASL_APP_CONTINUE;
-}
-
static void draw(void *ud, struct yasl_surface *surface, struct yasl_frame_context *frame)
{
(void)ud;
@@ -31,7 +23,6 @@ int main(void)
struct yasl_app_desc desc = {
.app_id = "org.example.hello",
.window = &window,
- .event = event,
.frame = draw,
};
int result = yasl_run(&desc);