From eaea5649a0803cc4bfeb6d21ee9f4098d4b493fc Mon Sep 17 00:00:00 2001 From: spicyjpeg Date: Tue, 20 Jun 2023 03:17:34 +0200 Subject: Fix IRQ bugs, PutDispEnv() PAL screen centering --- examples/demos/n00bdemo/disp.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'examples/demos') diff --git a/examples/demos/n00bdemo/disp.c b/examples/demos/n00bdemo/disp.c index d8d2bbf..a43a1d6 100644 --- a/examples/demos/n00bdemo/disp.c +++ b/examples/demos/n00bdemo/disp.c @@ -18,9 +18,9 @@ MATRIX mtx; void initDisplay() { - + ResetGraph( 0 ); - + if( GetVideoMode() == MODE_NTSC ) { SetDefDispEnv( &disp, 0, 0, 640, 480 ); SetDefDrawEnv( &draw, 0, 0, 640, 480 ); @@ -30,44 +30,44 @@ void initDisplay() { SetDefDispEnv( &disp, 0, 0, 640, 512 ); SetDefDrawEnv( &draw, 0, 0, 640, 512 ); scSetClipRect( 0, 0, 640, 512 ); - disp.screen.y = 20; - disp.screen.h = 256; + //disp.screen.y = 20; + //disp.screen.h = 256; printf("PAL System.\n"); } - + disp.isinter = 1; draw.isbg = 1; - + PutDispEnv( &disp ); PutDrawEnv( &draw ); - + ClearOTagR( ot[0], OT_LEN ); ClearOTagR( ot[1], OT_LEN ); nextpri = pribuff[0]; - + InitGeom(); gte_SetGeomScreen( 320 ); - + if( GetVideoMode() == MODE_NTSC ) { gte_SetGeomOffset( 320, 240 ); } else { gte_SetGeomOffset( 320, 256 ); } - + } void display() { DrawSync(0); VSync(0); - + PutDrawEnv( &draw ); DrawOTag( ot[db]+OT_LEN-1 ); - + db ^= 1; ClearOTagR( ot[db], OT_LEN ); nextpri = pribuff[db]; - + SetDispMask( 1 ); - + } \ No newline at end of file -- cgit v1.2.3