From 028419eb20f406e84cb8bfb577241f71dc23f5a0 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 24 Jul 2023 12:45:41 -0400 Subject: [PATCH] String.Format -> $"" --- Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Program.cs b/Program.cs index de5137f..2d59fff 100644 --- a/Program.cs +++ b/Program.cs @@ -479,7 +479,7 @@ public class Game : GameWindow { } } if (photos[photoIndex].Loaded) { - Texture label = Util.RenderText(String.Format("zoom: {0:F1}%", scale * 100)); + Texture label = Util.RenderText($"zoom: {(scale * 100):F1}%"); DrawTexture(label, Util.MakeBox(10, 10, label.Size.X, label.Size.Y)); label.Dispose(); }