mirror of
https://github.com/Xevion/rust-sdl2-emscripten.git
synced 2025-12-07 11:16:20 -06:00
Add HTML title, change window title
This commit is contained in:
@@ -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">
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user