aboutsummaryrefslogtreecommitdiff
path: root/examples/childexec
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-11-22 09:11:12 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-11-22 09:11:12 +0800
commitea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0 (patch)
tree43e2a53f4e5f7f55b075cfc9d6dc7a652a7b0837 /examples/childexec
parentd80d92e13330d527ddb94420b19f9e21bf0e74eb (diff)
downloadpsn00bsdk-ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0.tar.gz
Added long awaited CD-ROM library and loads of fixes, see changelog for details
Diffstat (limited to 'examples/childexec')
-rw-r--r--examples/childexec/parent.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/childexec/parent.c b/examples/childexec/parent.c
index dbaf696..7f577e4 100644
--- a/examples/childexec/parent.c
+++ b/examples/childexec/parent.c
@@ -223,7 +223,8 @@ int main(int argc, const char* argv[]) {
/* Sort a TPage primitive so the sprites will draw pixels from */
/* the correct texture page in VRAM */
tpri = (DR_TPAGE*)nextpri;
- setDrawTPage( tpri, 0, 0, tim.prect->x, tim.prect->y );
+ setDrawTPage( tpri, 0, 0,
+ getTPage( 0, 0, tim.prect->x, tim.prect->y ) );
addPrim( ot[db]+(OT_LEN-1), tpri );
nextpri += sizeof(DR_TPAGE);
@@ -301,4 +302,4 @@ void run_child() {
// Set this program's display mode
PutDispEnv(&disp);
-} \ No newline at end of file
+}