From 916d20a5dbab97d4825b7f508820bfa3a0965172 Mon Sep 17 00:00:00 2001 From: Nico de Poel Date: Mon, 6 Feb 2023 13:33:21 +0100 Subject: [PATCH] Display PAL and NTSC on the debug status text, making it easier to distinguish what we're outputting when. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index 58fb59a..fd7d05d 100644 --- a/main.c +++ b/main.c @@ -56,7 +56,7 @@ int main(int argc, const char *argv[]) display_setClearColor(world.worldSpawn->skyColor); u_short fps = time_getFrameRate(); - FntPrint(-1, "Time: %d, frame: %d, delta time: %3d, fps: %d.%02d\n", (time_getRealTime() * 1000) >> 12, time_getFrameNumber(), time_getDeltaTime(), fps >> 8, ((fps & 0xFF) * 100) >> 8); + FntPrint(-1, "Time: %d, frame: %d, delta: %3d, fps: %d.%02d %s\n", (time_getRealTime() * 1000) >> 12, time_getFrameNumber(), time_getDeltaTime(), fps >> 8, ((fps & 0xFF) * 100) >> 8, GetVideoMode() ? "PAL" : "NTSC"); FntPrint(-1, "Camera pos: (%d, %d, %d) rot: (%d, %d, %d) leaf: %d\n", cam_pos.vx, cam_pos.vy, cam_pos.vz, cam_rot.vx, cam_rot.vy, cam_rot.vz, cam_leaf); // Draw stuff