diff options
| author | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:43:04 +0300 |
|---|---|---|
| committer | Berke Güzel <wenekar1@gmail.com> | 2026-10-13 15:43:04 +0300 |
| commit | f8633236503df6e3caea9ed7975d6a81bc5c8025 (patch) | |
| tree | 9928b40cbf4b314c0722e1249bde74cf15b9e4b7 /tests/common | |
| parent | e24b8a8cef001e1c7e50ab12b739486f59b2a850 (diff) | |
Describe the hello window from main
hello no longer needs an init callback: main passes its window spec
through yasl_app_desc.window.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'tests/common')
| -rw-r--r-- | tests/common/test_hello_example.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/common/test_hello_example.c b/tests/common/test_hello_example.c index 7faa147..c648038 100644 --- a/tests/common/test_hello_example.c +++ b/tests/common/test_hello_example.c @@ -11,9 +11,10 @@ static void draw_once(void *ud, struct yasl_surface *surface, struct yasl_frame_ int main(void) { + struct yasl_window_spec window = {.title = "Hello YASL", .size = {640, 480}}; struct yasl_app_desc desc = { - .app_id = "org.yasl.test.hello", - .init = init, .event = event, .frame = draw_once, + .app_id = "org.yasl.test.hello", .window = &window, + .event = event, .frame = draw_once, }; return yasl_run(&desc) || failed ? 1 : 0; } |
