aboutsummaryrefslogtreecommitdiff
path: root/tests/sfwk-minimal.c
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-05-19 13:23:03 +1200
committerArslaan Pathan <[email protected]>2026-05-19 13:23:03 +1200
commit31eeb7cd7e1302b8315356acac4eca3ad8b4da6a (patch)
treef9f1bc4c0af873bd6e461b3258e89ed864aa5b62 /tests/sfwk-minimal.c
parent2bb9744b9e9f6f5328f809de73f0e1680a0ba7e8 (diff)
downloadsaffronwebkit-31eeb7cd7e1302b8315356acac4eca3ad8b4da6a.tar.xz
saffronwebkit-31eeb7cd7e1302b8315356acac4eca3ad8b4da6a.zip
Minor improvements, start having a look at audio, fix the flashing0.0.1
Diffstat (limited to 'tests/sfwk-minimal.c')
-rw-r--r--tests/sfwk-minimal.c5
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);