String.Format -> $""
This commit is contained in:
parent
4c72f797ab
commit
028419eb20
@ -479,7 +479,7 @@ public class Game : GameWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (photos[photoIndex].Loaded) {
|
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));
|
DrawTexture(label, Util.MakeBox(10, 10, label.Size.X, label.Size.Y));
|
||||||
label.Dispose();
|
label.Dispose();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user