|
|
@ -106,13 +106,34 @@ void display_reset(u_char interlaced, int *outScreenHeight) |
|
|
aspect_scale.vy = 256 * ONE / 240; |
|
|
aspect_scale.vy = 256 * ONE / 240; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// Define display environments, first on top and second on bottom |
|
|
|
|
|
SetDefDispEnv(&disp[0], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
SetDefDispEnv(&disp[1], 0, screenHeight, SCREENWIDTH, screenHeight); |
|
|
|
|
|
|
|
|
if (interlaced) |
|
|
|
|
|
{ |
|
|
|
|
|
screenHeight <<= 1; |
|
|
|
|
|
yOffset <<= 1; |
|
|
|
|
|
aspect_scale.vy <<= 1; |
|
|
|
|
|
|
|
|
|
|
|
// Define display environments, interlaced images cover the same area in VRAM |
|
|
|
|
|
SetDefDispEnv(&disp[0], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
SetDefDispEnv(&disp[1], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
|
|
|
|
|
|
// Define drawing environments, interlaced images cover the same area in VRAM |
|
|
|
|
|
SetDefDrawEnv(&draw[0], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
SetDefDrawEnv(&draw[1], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
|
|
|
|
|
|
disp[0].isinter = disp[1].isinter = 1; |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
// Define display environments, first on top and second on bottom |
|
|
|
|
|
SetDefDispEnv(&disp[0], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
SetDefDispEnv(&disp[1], 0, screenHeight, SCREENWIDTH, screenHeight); |
|
|
|
|
|
|
|
|
// Define drawing environments, first on bottom and second on top |
|
|
|
|
|
SetDefDrawEnv(&draw[0], 0, screenHeight, SCREENWIDTH, screenHeight); |
|
|
|
|
|
SetDefDrawEnv(&draw[1], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
|
|
|
// Define drawing environments, first on bottom and second on top |
|
|
|
|
|
SetDefDrawEnv(&draw[0], 0, screenHeight, SCREENWIDTH, screenHeight); |
|
|
|
|
|
SetDefDrawEnv(&draw[1], 0, 0, SCREENWIDTH, screenHeight); |
|
|
|
|
|
|
|
|
|
|
|
disp[0].isinter = disp[1].isinter = 0; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
disp[0].screen.y = disp[1].screen.y = yOffset; |
|
|
disp[0].screen.y = disp[1].screen.y = yOffset; |
|
|
disp[0].screen.h = disp[1].screen.h = screenHeight; |
|
|
disp[0].screen.h = disp[1].screen.h = screenHeight; |
|
|
|