From a33304ae7d5eac84a044372a7b7f187f3326b077 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Tue, 25 Jul 2023 09:45:40 -0400 Subject: [PATCH] draw status box background black --- Program.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Program.cs b/Program.cs index 7ffcdb0..e9b78eb 100644 --- a/Program.cs +++ b/Program.cs @@ -604,6 +604,7 @@ public class Game : GameWindow { } // Draw status box. + DrawFilledBox(geometry.StatusBox, Color4.Black); DrawText(activePhoto.Description(), geometry.StatusBox.Min.X + 80, geometry.StatusBox.Min.Y); if (activePhoto.Loaded) { DrawText($"{(scale * 100):F1}%", geometry.StatusBox.Min.X, geometry.StatusBox.Min.Y); @@ -631,6 +632,10 @@ public class Game : GameWindow { DrawTexture(TEXTURE_WHITE, Util.MakeBox(box.Max.X - thickness, box.Min.Y, thickness, box.Size.Y), color); } + void DrawFilledBox(Box2i box, Color4 color) { + DrawTexture(TEXTURE_WHITE, Util.MakeBox(box.Min.X, box.Min.Y, box.Size.X, box.Size.Y), color); + } + void DrawText(string text, int x, int y) { Texture label = Util.RenderText(text); DrawTexture(label, Util.MakeBox(x, y, label.Size.X, label.Size.Y));