aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--external_licenses/COPYING_wpe-sdl-simple.txt21
-rw-r--r--src/sfwk-wpe.c4
-rw-r--r--tests/sfwk-minimal.c2
3 files changed, 26 insertions, 1 deletions
diff --git a/external_licenses/COPYING_wpe-sdl-simple.txt b/external_licenses/COPYING_wpe-sdl-simple.txt
new file mode 100644
index 0000000..2bfc2a7
--- /dev/null
+++ b/external_licenses/COPYING_wpe-sdl-simple.txt
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2025 Adrian Perez
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/src/sfwk-wpe.c b/src/sfwk-wpe.c
index 1d374b3..ee6281e 100644
--- a/src/sfwk-wpe.c
+++ b/src/sfwk-wpe.c
@@ -20,6 +20,10 @@
#include <sys/types.h>
#include <unistd.h>
+// dont do this
+// TODO make this not use globals
+// if one were to make another webview in another window, they're f**ked
+// completely f**ked
static EGLContext saved_egl_context = EGL_NO_CONTEXT;
static EGLDisplay saved_egl_display = EGL_NO_DISPLAY;
diff --git a/tests/sfwk-minimal.c b/tests/sfwk-minimal.c
index 4a92730..97b2eb5 100644
--- a/tests/sfwk-minimal.c
+++ b/tests/sfwk-minimal.c
@@ -33,7 +33,7 @@ int main() {
ctx = sfwk_init();
if (!ctx) return 1;
- webview = sfwk_webview_new(ctx, "https://arslaancodes.com", 900, 600);
+ webview = sfwk_webview_new(ctx, "https://duckduckgo.com", 900, 600);
saffron_widget_add_child(window->root, (SaffronWidget*)button);
saffron_widget_add_child(window->root, (SaffronWidget*)webview);