aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/hdtv
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/hdtv
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/hdtv')
-rw-r--r--examples/graphics/hdtv/clip.h1
-rw-r--r--examples/graphics/hdtv/lookat.h1
-rw-r--r--examples/graphics/hdtv/main.c9
3 files changed, 8 insertions, 3 deletions
diff --git a/examples/graphics/hdtv/clip.h b/examples/graphics/hdtv/clip.h
index 3b428bb..4daf47a 100644
--- a/examples/graphics/hdtv/clip.h
+++ b/examples/graphics/hdtv/clip.h
@@ -1,6 +1,7 @@
#ifndef _CLIP_H
#define _CLIP_H
+#include <sys/types.h>
#include <psxgte.h>
#include <psxgpu.h>
diff --git a/examples/graphics/hdtv/lookat.h b/examples/graphics/hdtv/lookat.h
index c57e50a..4b10596 100644
--- a/examples/graphics/hdtv/lookat.h
+++ b/examples/graphics/hdtv/lookat.h
@@ -1,6 +1,7 @@
#ifndef _LOOKAT_H
#define _LOOKAT_H
+#include <sys/types.h>
#include <psxgte.h>
#include <psxgpu.h>
diff --git a/examples/graphics/hdtv/main.c b/examples/graphics/hdtv/main.c
index 82911d5..a4dcd79 100644
--- a/examples/graphics/hdtv/main.c
+++ b/examples/graphics/hdtv/main.c
@@ -2,7 +2,7 @@
* LibPSn00b Example Programs
*
* Full-resolution, Anamorphic Widescreen 3D Example
- * 2020 Meido-Tek Productions / PSn00bSDK Project
+ * 2020 - 2021 Meido-Tek Productions / PSn00bSDK Project
*
* This example is a modification of the fpscam example demonstrating
* a method for taking advantage of widescreen HDTVs by means of a
@@ -51,10 +51,13 @@
*
* Changelog:
*
- * November 27, 2020 - Initial version.
+ * May 10, 2021 - Variable types updated for psxgpu.h changes.
+ *
+ * November 27, 2020 - Initial version.
*
*/
+#include <sys/types.h>
#include <stdio.h>
#include <psxgpu.h>
#include <psxgte.h>
@@ -83,7 +86,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;