From 31eeb7cd7e1302b8315356acac4eca3ad8b4da6a Mon Sep 17 00:00:00 2001 From: Arslaan Pathan Date: Tue, 19 May 2026 13:23:03 +1200 Subject: Minor improvements, start having a look at audio, fix the flashing --- tests/sfwk-minimal.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/sfwk-minimal.c b/tests/sfwk-minimal.c index 97b2eb5..e9fad14 100644 --- a/tests/sfwk-minimal.c +++ b/tests/sfwk-minimal.c @@ -1,4 +1,5 @@ #include "glib.h" +#include "saffron_widget.h" #include #include #include @@ -33,11 +34,13 @@ int main() { ctx = sfwk_init(); if (!ctx) return 1; - webview = sfwk_webview_new(ctx, "https://duckduckgo.com", 900, 600); + 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); webview->window = window; // so the webview can access the GL context + ((SaffronWidget*)webview)->width_mode = SAFFRON_SIZE_STRETCH; + ((SaffronWidget*)webview)->height_mode = SAFFRON_SIZE_STRETCH; saffron_hook_sdl_all_events(window, hook_callback, 999); -- cgit v1.2.3