From 9aa3aefc533ced7dbd8b38529b21b95e943ba4b0 Mon Sep 17 00:00:00 2001 From: Carlos Sanchez Date: Sat, 7 Sep 2024 12:03:13 -0400 Subject: [PATCH] Small fixes to ps2 maze --- ps2/maze.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ps2/maze.c b/ps2/maze.c index 5a56ad1..bcbbbac 100644 --- a/ps2/maze.c +++ b/ps2/maze.c @@ -3,7 +3,6 @@ // #define H3DEBUG_NOCLIPPING // #define H3DEBUG_SKIPTRIPIX #define H3D_VOLATILE_FLOATS -// #include #define MATHC_USE_UNIONS #define MATHC_NO_STRUCT_FUNCTIONS #include "../haloo3d/lib/mathc.c" @@ -12,7 +11,6 @@ #include "../haloo3d/haloo3d.c" #include "../haloo3d/haloo3dex_easy.c" #include "../haloo3d/haloo3dex_gen.c" -//#include "../haloo3d/haloo3dex_img.c" #include "../haloo3d/haloo3dex_obj.c" #include "../haloo3d/haloo3dex_print.c" // clang-format on @@ -25,7 +23,6 @@ #include "SDL2/SDL.h" #include "../ecs2.h" -// #include "keys.h" #include "../maze_ecstypes.h" #include @@ -1094,6 +1091,7 @@ int main() { // int argc, char **argv) { haloo3d_easyrender_init(&render, WIDTH, HEIGHT); render.camera.pos.y = 0.5; render.tprint.fb = &screen; + render.tprint.bcolor = 0x8000; // Because ps2 is A1B5G5R5 render.autolightfix = 1; render.rendersettings.ditherclose = DITHERSTART; render.rendersettings.ditherfar = DITHEREND; @@ -1340,7 +1338,7 @@ int main() { // int argc, char **argv) { haloo3d_print( &render.tprint, - "\n\n Pframe: %05.2f (%05.2f)\n MinMax: %05.2f / %05.2f\n PSDLFl: " + "\n Pframe: %05.2f (%05.2f)\n MinMax: %05.2f / %05.2f\n PSDLFl: " "%05.2f (%05.2f)\n Fill: %05.2f " "(%05.2f)\n Logic: %05.2f (%05.2f)\n Tris: %d / %d\n Verts: " "%d\n WState: %d",