From b7e7477fe8e4ec1388274ca77355c7c1080d5f84 Mon Sep 17 00:00:00 2001 From: SlowRiot Date: Thu, 3 Sep 2026 14:32:39 +0100 Subject: [PATCH] Examples: Emscripten+WebGPU: Match project C cast style --- examples/example_emscripten_wgpu/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/example_emscripten_wgpu/main.cpp b/examples/example_emscripten_wgpu/main.cpp index 95770f94c..84e609dc6 100644 --- a/examples/example_emscripten_wgpu/main.cpp +++ b/examples/example_emscripten_wgpu/main.cpp @@ -137,8 +137,8 @@ static bool InitWGPU() static void GetFramebufferSizeFromDisplaySize(int width, int height, int* framebuffer_width, int* framebuffer_height) { ImGuiIO& io = ImGui::GetIO(); - *framebuffer_width = static_cast(width * io.DisplayFramebufferScale.x + 0.5f); - *framebuffer_height = static_cast(height * io.DisplayFramebufferScale.y + 0.5f); + *framebuffer_width = (int)(width * io.DisplayFramebufferScale.x + 0.5f); + *framebuffer_height = (int)(height * io.DisplayFramebufferScale.y + 0.5f); } static void ResizeSurface(int width, int height)