diff options
| author | Arslaan Pathan <[email protected]> | 2026-04-08 18:21:40 +1200 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-04-08 18:21:40 +1200 |
| commit | 0f19e5f0175b0e031257ccd22f42e21baaf2f720 (patch) | |
| tree | cee391e4de8b22470c143239f826055908eb1c60 /src/saffron.c | |
| parent | c9660a840256308d4dde40613a1af3296d3fdead (diff) | |
| download | saffron-0f19e5f0175b0e031257ccd22f42e21baaf2f720.tar.xz saffron-0f19e5f0175b0e031257ccd22f42e21baaf2f720.zip | |
Implement saffron_window_main and saffron_quit, among a few other missing APIs, and get an actual API test to work.
IT WORKS IT WORKS IT WORKS THIS IS SO PEAK IT WORKS OHMYGOD IT WORKS FINALLY IT WORKS IT WORKS IT WOORKSKSKSKSKKS!!!!!!
Diffstat (limited to 'src/saffron.c')
| -rw-r--r-- | src/saffron.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/saffron.c b/src/saffron.c index 8724101..e9f9ca6 100644 --- a/src/saffron.c +++ b/src/saffron.c @@ -17,13 +17,8 @@ bool saffron_init(void) { return true; } -void saffron_widget_draw(SaffronWidget* widget, SDL_Renderer *renderer) { - // do stuff later +void saffron_quit(void) { + TTF_Quit(); + SDL_Quit(); } -void saffron_widget_add_child(SaffronWidget *parent, SaffronWidget *child) { - child->parent = parent; - parent->children = realloc(parent->children, sizeof(SaffronWidget*) * (parent->child_count + 1)); - parent->children[parent->child_count] = child; - parent->child_count++; -} |
