diff options
author | aaronp64 <aaronp.code@gmail.com> | 2024-05-14 19:08:40 -0400 |
---|---|---|
committer | aaronp64 <aaronp.code@gmail.com> | 2024-05-15 09:19:00 -0400 |
commit | ca8e3d4923f94eebf8d8b16a8625d1de6df32768 (patch) | |
tree | ccaa2a9eda33ce7696e08a5ceb63285c7ddd431e /servers/rendering/rendering_server_default.cpp | |
parent | 78cce1954ddb6fefb90b33742215f304ec7b0b94 (diff) | |
download | redot-engine-ca8e3d4923f94eebf8d8b16a8625d1de6df32768.tar.gz |
Fix tooltip content being cut off at some display scales
When getting the minimum size for a tooltip, we get the value as a Vector2. Window::set_size() takes a Vector2i, so this size was getting truncated. At certain display scales, this could be enough to cut off part of the tooltip. Updated to call Vector2::ceil() to round up before calling Window::set_size()
Fixes #91958
Diffstat (limited to 'servers/rendering/rendering_server_default.cpp')
0 files changed, 0 insertions, 0 deletions