fix: image render & LabelCache::update crash

This commit is contained in:
@clasher113
2025-03-29 21:53:05 +02:00
parent 06adaaeadc
commit a6015a326b
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -160,9 +160,9 @@ CursorShape UINode::getCursor() const {
glm::vec2 UINode::calcPos() const {
if (parent) {
return pos + parent->calcPos() + parent->getContentOffset();
return glm::ivec2(pos + parent->calcPos() + parent->getContentOffset());
}
return pos;
return glm::ivec2(pos);
}
void UINode::scrolled(int value) {