Add HTML title, change window title

This commit is contained in:
2024-04-23 20:22:08 -05:00
parent 3131d6ee52
commit 40afb3b95b
2 changed files with 2 additions and 1 deletions

View File

@@ -3,6 +3,7 @@
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="build.css" />
<title>rust-sdl2-emscripten</title>
</head>
<body class="m-0 p-0 bg-black text-white">
<div class="max-w-screen-md mx-auto mt-10">

View File

@@ -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()