|
|
@ -57,7 +57,7 @@ void display_init() |
|
|
|
|
|
|
|
|
// Start the display in progressive mode |
|
|
// Start the display in progressive mode |
|
|
int screenHeight; |
|
|
int screenHeight; |
|
|
display_reset(0, &screenHeight); |
|
|
|
|
|
|
|
|
display_reset(GetVideoMode(), 0, &screenHeight); |
|
|
|
|
|
|
|
|
// Set and enable clear color |
|
|
// Set and enable clear color |
|
|
setRGB0(&draw[0], 49, 77, 121); |
|
|
setRGB0(&draw[0], 49, 77, 121); |
|
|
@ -86,10 +86,13 @@ void display_init() |
|
|
gte_SetGeomScreen(180); // Screen depth for FOV control. Determines the distance of the camera to the near plane. |
|
|
gte_SetGeomScreen(180); // Screen depth for FOV control. Determines the distance of the camera to the near plane. |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void display_reset(u_char interlaced, int *outScreenHeight) |
|
|
|
|
|
|
|
|
void display_reset(int mode, u_char interlaced, int *outScreenHeight) |
|
|
{ |
|
|
{ |
|
|
|
|
|
if (mode != GetVideoMode()) |
|
|
|
|
|
SetVideoMode(mode); |
|
|
|
|
|
|
|
|
int screenHeight, yOffset; |
|
|
int screenHeight, yOffset; |
|
|
if (GetVideoMode() == MODE_NTSC) |
|
|
|
|
|
|
|
|
if (mode == MODE_NTSC) |
|
|
{ |
|
|
{ |
|
|
screenHeight = SCREENHEIGHT_NTSC; |
|
|
screenHeight = SCREENHEIGHT_NTSC; |
|
|
yOffset = (240 - SCREENHEIGHT_NTSC) >> 1; // Vertically center the image for NTSC displays |
|
|
yOffset = (240 - SCREENHEIGHT_NTSC) >> 1; // Vertically center the image for NTSC displays |
|
|
|