diff options
| author | spicyjpeg <thatspicyjpeg@gmail.com> | 2023-06-20 03:17:34 +0200 |
|---|---|---|
| committer | spicyjpeg <thatspicyjpeg@gmail.com> | 2023-06-20 03:17:34 +0200 |
| commit | eaea5649a0803cc4bfeb6d21ee9f4098d4b493fc (patch) | |
| tree | 786f6edfae0c6affe0d7c7b222cd12f52578ca01 /examples/demos | |
| parent | 7eed71a90bed67e4a987a9db55e15e9403523dca (diff) | |
| download | psn00bsdk-eaea5649a0803cc4bfeb6d21ee9f4098d4b493fc.tar.gz | |
Fix IRQ bugs, PutDispEnv() PAL screen centering
Diffstat (limited to 'examples/demos')
| -rw-r--r-- | examples/demos/n00bdemo/disp.c | 28 |
1 files changed, 14 insertions, 14 deletions
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 |
