Examples: Emscripten+WebGPU: Match project C cast style

This commit is contained in:
SlowRiot 2026-09-03 14:32:39 +01:00
parent 40ed02df53
commit b7e7477fe8

View File

@ -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<int>(width * io.DisplayFramebufferScale.x + 0.5f);
*framebuffer_height = static_cast<int>(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)