String.Format -> $""

This commit is contained in:
Colin McMillen 2023-07-24 12:45:41 -04:00
parent 4c72f797ab
commit 028419eb20

View File

@ -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();
}