From b86805909c2d15fb640cbb627254ff29568645f7 Mon Sep 17 00:00:00 2001 From: ABelliqueux Date: Sat, 10 Jul 2021 18:18:38 +0200 Subject: [PATCH] Change Videomode code --- hello_gte_opti/hello_gte_opti.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/hello_gte_opti/hello_gte_opti.c b/hello_gte_opti/hello_gte_opti.c index cb956ef..f3f9993 100644 --- a/hello_gte_opti/hello_gte_opti.c +++ b/hello_gte_opti/hello_gte_opti.c @@ -61,15 +61,8 @@ void init(void) // Set draw environment SetDefDrawEnv(&draw[0], 0, SCREENYRES, SCREENXRES, SCREENYRES); SetDefDrawEnv(&draw[1], 0, 0, SCREENXRES, SCREENYRES); - // If PAL, use 320x256, hence 256 - 240 = 16 / 2 = 8 px vertical offset - if (VMODE) - { - SetVideoMode(MODE_PAL); - disp[0].screen.y += 8; - disp[1].screen.y += 8; - } - SetDispMask(1); - + if (VMODE){ SetVideoMode(MODE_PAL);} + SetDispMask(1); // Set background color setRGB0(&draw[0], 50, 50, 50); setRGB0(&draw[1], 50, 50, 50);