From f21101b98ccd509b4a416723b956158042b7f6e7 Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Sun, 3 May 2026 09:34:18 +1200 Subject: Add stuff --- tests/sfwk-minimal.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/sfwk-minimal.c b/tests/sfwk-minimal.c index 68dcd3c..afac3a2 100644 --- a/tests/sfwk-minimal.c +++ b/tests/sfwk-minimal.c @@ -7,8 +7,7 @@ SFWKContext* ctx; SFWKWebView* webview; bool hook_callback(SDL_Event* event) { - sfwk_process_event(ctx, webview, event); - return true; + return sfwk_process_event(ctx, webview, event); } void btn_callback(SaffronButton* btn) { @@ -16,9 +15,6 @@ void btn_callback(SaffronButton* btn) { } int main() { - // if (!SDL_SetHint(SDL_HINT_VIDEO_DRIVER, "x11")) { - // printf("Warning: Could not set SDL_HINT_VIDEO_DRIVER\n"); - // } saffron_init(); const char* driver = SDL_GetCurrentVideoDriver(); @@ -33,7 +29,7 @@ int main() { ctx = sfwk_init(); if (!ctx) return 1; - SFWKWebView* webview = sfwk_webview_new(ctx, "https://brickmii.xyz", 900, 600); + SFWKWebView* webview = sfwk_webview_new(ctx, "https://arslaancodes.com", 900, 600); saffron_widget_add_child(window->root, (SaffronWidget*)button); saffron_widget_add_child(window->root, (SaffronWidget*)webview); -- cgit v1.2.3