mirror of
https://github.com/ocornut/imgui.git
synced 2026-11-06 06:25:54 +01:00
Examples: Emscripten+WebGPU: Match project C cast style
This commit is contained in:
parent
40ed02df53
commit
b7e7477fe8
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user