mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
fix: correct visuals for all screen resolutions
This commit is contained in:
parent
e59004b052
commit
77b0a1f4e5
1 changed files with 2 additions and 6 deletions
|
|
@ -227,6 +227,8 @@ public class Fools22 : IDisposable
|
|||
|
||||
private static void AdjustCursorAndDraw(Vector2 vpSize, TextureWrap tex, float scale = 1.0f)
|
||||
{
|
||||
ImGui.SetCursorPos(new Vector2(0, 0));
|
||||
|
||||
var width = vpSize.X;
|
||||
var height = tex.Height / (float)tex.Width * width;
|
||||
|
||||
|
|
@ -234,11 +236,6 @@ public class Fools22 : IDisposable
|
|||
{
|
||||
height = vpSize.Y;
|
||||
width = tex.Width / (float)tex.Height * height;
|
||||
ImGui.SetCursorPosX((vpSize.X - width) / 2);
|
||||
}
|
||||
else
|
||||
{
|
||||
ImGui.SetCursorPosY((vpSize.Y - height) / 2);
|
||||
}
|
||||
|
||||
var scaledSize = new Vector2(width, height) * scale;
|
||||
|
|
@ -340,5 +337,4 @@ public class Fools22 : IDisposable
|
|||
|
||||
this.player.Dispose();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue