diff options
Diffstat (limited to 'tests/sfwk-minimal.c')
| -rw-r--r-- | tests/sfwk-minimal.c | 8 |
1 files changed, 2 insertions, 6 deletions
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); |
