mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 22:37:43 +01:00
cs bump
This commit is contained in:
parent
5471fb3fad
commit
8d0b3b1e28
2 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue