From 01fe30bd8bae59ab954751b08bcc1d158eff7edb Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Thu, 1 Jul 2021 08:45:46 +0800 Subject: Added int*_t and uint*_t variable types and updated type definitions in psxgpu and psxcd, to improve compatibility with code written for the official SDK. --- examples/graphics/gte/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'examples/graphics/gte/main.c') diff --git a/examples/graphics/gte/main.c b/examples/graphics/gte/main.c index 432ef95..a7ddb6b 100644 --- a/examples/graphics/gte/main.c +++ b/examples/graphics/gte/main.c @@ -2,7 +2,7 @@ * LibPSn00b Example Programs * * GTE Graphics Example - * 2019 Meido-Tek Productions / PSn00bSDK Project + * 2019 - 2021 Meido-Tek Productions / PSn00bSDK Project * * Renders a spinning 3D cube with light source calculation * using GTE macros. @@ -12,10 +12,13 @@ * * Changelog: * - * Jan 26, 2019 - Initial version. + * May 10, 2021 - Variable types updated for psxgpu.h changes. + * + * Jan 26, 2019 - Initial version. * */ +#include #include #include #include @@ -38,7 +41,7 @@ typedef struct { DISPENV disp; /* Display environment */ DRAWENV draw; /* Drawing environment */ - int ot[OT_LEN]; /* Ordering table */ + u_long ot[OT_LEN]; /* Ordering table */ char p[PACKET_LEN]; /* Packet buffer */ } DB; -- cgit v1.2.3