mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-13 12:14:16 +01:00
Fix WorldToScreen
This commit is contained in:
parent
6b2c2e83ef
commit
8d402b0797
1 changed files with 4 additions and 3 deletions
|
|
@ -8,6 +8,7 @@ using Dalamud.Interface;
|
||||||
using Dalamud.IoC;
|
using Dalamud.IoC;
|
||||||
using Dalamud.IoC.Internal;
|
using Dalamud.IoC.Internal;
|
||||||
using Dalamud.Utility;
|
using Dalamud.Utility;
|
||||||
|
using FFXIVClientStructs.FFXIV.Client.Graphics.Kernel;
|
||||||
using FFXIVClientStructs.FFXIV.Client.System.String;
|
using FFXIVClientStructs.FFXIV.Client.System.String;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
using FFXIVClientStructs.FFXIV.Component.GUI;
|
using FFXIVClientStructs.FFXIV.Component.GUI;
|
||||||
|
|
@ -200,9 +201,9 @@ public sealed unsafe class GameGui : IDisposable, IServiceType
|
||||||
|
|
||||||
for (var i = 0; i < 16; i++, rawMatrix++)
|
for (var i = 0; i < 16; i++, rawMatrix++)
|
||||||
viewProjectionMatrix[i] = *rawMatrix;
|
viewProjectionMatrix[i] = *rawMatrix;
|
||||||
|
var device = Device.Instance();
|
||||||
width = *rawMatrix;
|
width = device->Width;
|
||||||
height = *(rawMatrix + 1);
|
height = device->Height;
|
||||||
}
|
}
|
||||||
|
|
||||||
var worldPosDx = worldPos.ToSharpDX();
|
var worldPosDx = worldPos.ToSharpDX();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue