From 40afb3b95bee6d4c3f56618965201774d1dbeecf Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 23 Apr 2024 20:22:08 -0500 Subject: [PATCH] Add HTML title, change window title --- assets/index.html | 1 + src/main.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/index.html b/assets/index.html index 237387a..e789571 100644 --- a/assets/index.html +++ b/assets/index.html @@ -3,6 +3,7 @@ + rust-sdl2-emscripten
diff --git a/src/main.rs b/src/main.rs index 5c394ff..0465c9d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -59,7 +59,7 @@ fn main() { let video_ctx = ctx.video().unwrap(); let window = match video_ctx - .window("Hello, Rust / SDL2 / WASM!", 640, 480) + .window("rust-sdl2-emscripten", 640, 480) .position_centered() .resizable() .allow_highdpi()