From 77b0a1f4e5c94e277a2ad90a2280c370661b02f3 Mon Sep 17 00:00:00 2001 From: goaaats Date: Fri, 1 Apr 2022 02:42:18 +0200 Subject: [PATCH] fix: correct visuals for all screen resolutions --- Dalamud/Fools22.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Dalamud/Fools22.cs b/Dalamud/Fools22.cs index 380fde208..c25a1746f 100644 --- a/Dalamud/Fools22.cs +++ b/Dalamud/Fools22.cs @@ -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(); } - }