From ea46d05aed0343c20d8fdfaa0e67d54d51e8e2a0 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Fri, 22 Nov 2019 09:11:12 +0800 Subject: Added long awaited CD-ROM library and loads of fixes, see changelog for details --- examples/childexec/parent.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'examples/childexec') 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 +} -- cgit v1.2.3