Fix basic_window_web, where a bool was passed to an int

This commit is contained in:
Nikolas 2025-03-10 13:24:56 +01:00
parent 5bbafa4f86
commit a7f626993c
No known key found for this signature in database
GPG Key ID: E95F679E3CDD9784

View File

@ -24,7 +24,7 @@ pub fn main() anyerror!void {
defer rl.closeWindow(); // Close window and OpenGL context defer rl.closeWindow(); // Close window and OpenGL context
if (builtin.os.tag == .emscripten) { if (builtin.os.tag == .emscripten) {
c.emscripten_set_main_loop(@ptrCast(&updateDrawFrame), 0, true); c.emscripten_set_main_loop(@ptrCast(&updateDrawFrame), 0, 1);
} else { } else {
rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second rl.setTargetFPS(60); // Set our game to run at 60 frames-per-second