From 4ad77a36e923f6dc5d1ec4aec76044fceaae6f51 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Sun, 17 Jan 2021 02:29:21 +1300 Subject: [PATCH] Quick update for 1.5 --- FishPreview/FishPreview.csproj | 9 +++++++-- FishPreview/ModEntry.cs | 2 +- FishPreview/packages.config | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/FishPreview/FishPreview.csproj b/FishPreview/FishPreview.csproj index 2af8171..0a42545 100644 --- a/FishPreview/FishPreview.csproj +++ b/FishPreview/FishPreview.csproj @@ -54,8 +54,13 @@ MinimumRecommendedRules.ruleset + + + + + @@ -73,11 +78,11 @@ - + This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - + \ No newline at end of file diff --git a/FishPreview/ModEntry.cs b/FishPreview/ModEntry.cs index bda14e0..969fe9b 100644 --- a/FishPreview/ModEntry.cs +++ b/FishPreview/ModEntry.cs @@ -179,7 +179,7 @@ private void DrawFishDisplay(IList positions, BobberBar bar) // call a function to determine the x and y coords DetermineCoordinates(positions, bar, out int x, out int y); // call a function to draw the box - DrawAtCoordinates(x, y); + DrawAtCoordinates((int)(x * (Game1.options.zoomLevel / Game1.options.uiScale)), (int) (y * (Game1.options.zoomLevel / Game1.options.uiScale))); } private void DetermineCoordinates(IList positions, BobberBar bar, out int x, out int y) diff --git a/FishPreview/packages.config b/FishPreview/packages.config index 02bb716..c060e12 100644 --- a/FishPreview/packages.config +++ b/FishPreview/packages.config @@ -1,4 +1,4 @@  - + \ No newline at end of file