Compare commits
No commits in common. "f83d7f13aaea69298122ab7f6fa037bd3af092d9" and "3012f67c9f574d5b595c18b75df739afb5180d73" have entirely different histories.
f83d7f13aa
...
3012f67c9f
10
Program.cs
10
Program.cs
@ -19,7 +19,7 @@ using System.Xml.Linq;
|
|||||||
namespace SemiColinGames;
|
namespace SemiColinGames;
|
||||||
|
|
||||||
public class FpsCounter {
|
public class FpsCounter {
|
||||||
private readonly int[] frameTimes = new int[30];
|
private readonly int[] frameTimes = new int[60];
|
||||||
private double fps = 0;
|
private double fps = 0;
|
||||||
private int idx = 0;
|
private int idx = 0;
|
||||||
|
|
||||||
@ -504,7 +504,6 @@ public static class Util {
|
|||||||
return texture;
|
return texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
// FIXME: make a real icon stored as a PNG...
|
|
||||||
public static OpenTK.Windowing.Common.Input.Image[] RenderAppIcon() {
|
public static OpenTK.Windowing.Common.Input.Image[] RenderAppIcon() {
|
||||||
int size = 64;
|
int size = 64;
|
||||||
Font font = SystemFonts.CreateFont("MS Mincho", size, FontStyle.Bold);
|
Font font = SystemFonts.CreateFont("MS Mincho", size, FontStyle.Bold);
|
||||||
@ -804,12 +803,11 @@ public class Game : GameWindow {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Draw status box.
|
// Draw status box.
|
||||||
int statusPadding = 2;
|
|
||||||
DrawFilledBox(geometry.StatusBox, Color4.Black);
|
DrawFilledBox(geometry.StatusBox, Color4.Black);
|
||||||
DrawText(activePhoto.Description(), geometry.StatusBox.Min.X + 80, geometry.StatusBox.Min.Y + statusPadding);
|
DrawText(activePhoto.Description(), geometry.StatusBox.Min.X + 80, geometry.StatusBox.Min.Y);
|
||||||
DrawText($" FPS: {fpsCounter.Fps}", geometry.StatusBox.Max.X - 76, geometry.StatusBox.Min.Y + statusPadding);
|
DrawText($" FPS: {fpsCounter.Fps}", geometry.StatusBox.Max.X - 76, geometry.StatusBox.Min.Y);
|
||||||
if (activePhoto.Loaded) {
|
if (activePhoto.Loaded) {
|
||||||
DrawText($"{(scale * 100):F1}%", geometry.StatusBox.Min.X, geometry.StatusBox.Min.Y + statusPadding);
|
DrawText($"{(scale * 100):F1}%", geometry.StatusBox.Min.X, geometry.StatusBox.Min.Y);
|
||||||
}
|
}
|
||||||
|
|
||||||
SwapBuffers();
|
SwapBuffers();
|
||||||
|
Loading…
Reference in New Issue
Block a user