From 086088fb4c0ed295e4c2f5279013861ca49419ba Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 3 Aug 2023 23:29:27 -0400 Subject: [PATCH] move the white border of crop rectangle out by 1 --- Program.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Program.cs b/Program.cs index 95da4be..e034c2a 100644 --- a/Program.cs +++ b/Program.cs @@ -1060,7 +1060,7 @@ public class Game : GameWindow { Texture star = (activePhoto.Rating > i) ? STAR_FILLED : STAR_EMPTY; DrawTexture(star, geometry.StarBoxes[i].Min.X, geometry.StarBoxes[i].Min.Y); } - bool cropActive = activeTool.GetType().Name == "CropTool"; + bool cropActive = activeTool is CropTool; DrawCropRectangle(cropActive); // Draw thumbnail boxes. @@ -1115,7 +1115,7 @@ public class Game : GameWindow { DrawFilledBox(new Box2i(left, 0, geometry.PhotoBox.Max.X, top), shadeColor); DrawFilledBox(new Box2i(left, bottom, geometry.PhotoBox.Max.X, geometry.PhotoBox.Max.Y), shadeColor); DrawFilledBox(new Box2i(right, top, geometry.PhotoBox.Max.X, bottom), shadeColor); - DrawBox(new Box2i(left, top, right, bottom), 1, Color4.White); + DrawBox(new Box2i(left - 1, top - 1, right + 1, bottom + 1), 1, Color4.White); if (active) { DrawHorizontalLine(left, Util.Lerp(top, bottom, 1.0 / 3), right, Color4.White); DrawHorizontalLine(left, Util.Lerp(top, bottom, 2.0 / 3), right, Color4.White);