You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am drawing two images in the same place. Background is drawn with AddImageRounded. Foreground is drawn with AddImage
Here black image is drawn using AddImage (same result is for AddImageRounded with 0.0f corner radius).
Here black image is drawn using AddImageRounded with 25.0f corner radius
Zoom of the second image:
as you can see in the second case black image looks moved half pixel up.
The reason is that bb0.y has value 1190.5. When I apply flooring to y coordinate, both images are aligned perfectly.
This may be expected for someone, but for me it was confusing to find out that two very similar functions (or even AddImageRounded with radius <0.5f) behave different. Not sure if this is a defect report or just observation.
The text was updated successfully, but these errors were encountered:
Version/Branch of Dear ImGui:
v1.90.2 WIP docking
Back-ends:
imgui_impl_win32.h + imgui_impl_dx11.h
Compiler, OS:
Windows 10 + MSVC 2022
Full config/build information:
No response
Details:
Hello!
I am drawing two images in the same place. Background is drawn with
AddImageRounded
. Foreground is drawn withAddImage
Here black image is drawn using AddImage (same result is for AddImageRounded with 0.0f corner radius).
Here black image is drawn using AddImageRounded with 25.0f corner radius
Zoom of the second image:
as you can see in the second case black image looks moved half pixel up.
The reason is that
bb0.y
has value1190.5
. When I apply flooring to y coordinate, both images are aligned perfectly.This may be expected for someone, but for me it was confusing to find out that two very similar functions (or even AddImageRounded with radius <0.5f) behave different. Not sure if this is a defect report or just observation.
The text was updated successfully, but these errors were encountered: