diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/sfwk-minimal.c | 5 |
1 files changed, 4 insertions, 1 deletions
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 <SDL3/SDL_hints.h> #include <saffron.h> #include <saffronwebkit.h> @@ -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); |
