aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/fpscam/main.c
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-07-01 08:45:46 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2021-07-01 08:45:46 +0800
commit01fe30bd8bae59ab954751b08bcc1d158eff7edb (patch)
treeaa83e37f4e59207ec41b3d47796875755462c63f /examples/graphics/fpscam/main.c
parentda79082d2c5e0dcbc899a359f6f49ec8cca90d66 (diff)
downloadpsn00bsdk-01fe30bd8bae59ab954751b08bcc1d158eff7edb.tar.gz
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.
Diffstat (limited to 'examples/graphics/fpscam/main.c')
-rw-r--r--examples/graphics/fpscam/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/graphics/fpscam/main.c b/examples/graphics/fpscam/main.c
index 9dedf06..a009a65 100644
--- a/examples/graphics/fpscam/main.c
+++ b/examples/graphics/fpscam/main.c
@@ -33,7 +33,8 @@
* Sep 24, 2019 - Added camera position display and _boot() exit.
*
*/
-
+
+#include <sys/types.h>
#include <stdio.h>
#include <psxgpu.h>
#include <psxgte.h>
@@ -62,7 +63,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;