Skip to content

Commit

Permalink
Fixed warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
bkaradzic committed Dec 29, 2024
1 parent b9070d1 commit 571a031
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/common/imgui/imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ struct OcornutImguiContext
void render(ImDrawData* _drawData)
{
// Avoid rendering when minimized, scale coordinates for retina displays (screen coordinates != framebuffer coordinates)
int32_t dispWidth = _drawData->DisplaySize.x * _drawData->FramebufferScale.x;
int32_t dispHeight = _drawData->DisplaySize.y * _drawData->FramebufferScale.y;
int32_t dispWidth = int32_t(_drawData->DisplaySize.x * _drawData->FramebufferScale.x);
int32_t dispHeight = int32_t(_drawData->DisplaySize.y * _drawData->FramebufferScale.y);
if (dispWidth <= 0
|| dispHeight <= 0)
{
Expand Down

0 comments on commit 571a031

Please sign in to comment.