This commit is contained in:
Kaz Wolfe 2024-06-28 08:00:02 -07:00
parent 5471fb3fad
commit 8d0b3b1e28
No known key found for this signature in database
GPG key ID: 258813F53A16EBB4
2 changed files with 4 additions and 4 deletions

View file

@ -241,7 +241,7 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
else
{
// If we want the node hidden, shift it up, to prevent collision conflicts
data.TextNode->AtkResNode.SetY(-collisionNode->Height * dtr->RootNode->ScaleX);
data.TextNode->AtkResNode.SetYFloat(-collisionNode->Height * dtr->RootNode->ScaleX);
}
}
}
@ -303,10 +303,10 @@ internal sealed unsafe class DtrBar : IInternalDisposableService, IDtrBar
var targetX = minX - (this.configuration.DtrSwapDirection ? 0 : additionalWidth);
var targetWidth = (ushort)(nativeWidth + additionalWidth);
if (collisionNode->Width != targetWidth || collisionNode->X != targetX)
if (collisionNode->Width != targetWidth || Math.Abs(collisionNode->X - targetX) > 0.0001)
{
collisionNode->SetWidth(targetWidth);
collisionNode->SetX(targetX);
collisionNode->SetXFloat(targetX);
}
// If we are drawing backwards, we should start from the right side of the native nodes.

@ -1 +1 @@
Subproject commit 53da4ea7d8655f273d652b4b7182edf85bd5a6a9
Subproject commit 1ed9dd8ece743cca65c04977184533d61233ae06