mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-28 02:50:06 +00:00
SetScrollPosHere() fixed imprecisions
This commit is contained in:
parent
3ca54ad369
commit
3fd4441f70
1 changed files with 1 additions and 1 deletions
|
|
@ -4646,7 +4646,7 @@ float ImGui::GetScrollMaxY()
|
|||
void ImGui::SetScrollPosHere()
|
||||
{
|
||||
ImGuiWindow* window = GetCurrentWindow();
|
||||
window->ScrollTargetCenterY = (window->DC.CursorPos.y + window->ScrollY) - window->DC.PrevLineHeight * 0.5f;
|
||||
window->ScrollTargetCenterY = (float)(int)(window->DC.CursorPos.y + window->ScrollY - window->DC.PrevLineHeight * 0.5f);
|
||||
}
|
||||
|
||||
void ImGui::SetKeyboardFocusHere(int offset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue