|
|
@ -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(GetVideoMode(), 0, &screenHeight); |
|
|
|
|
|
|
|
|
display_reset(GetVideoMode(), 0, 0, &screenHeight); |
|
|
|
|
|
|
|
|
// Clear double buffer counter |
|
|
// Clear double buffer counter |
|
|
db = 0; |
|
|
db = 0; |
|
|
@ -73,7 +73,7 @@ void display_init() |
|
|
FntOpen(0, 16, SCREENWIDTH, screenHeight, 0, 512); |
|
|
FntOpen(0, 16, SCREENWIDTH, screenHeight, 0, 512); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void display_reset(int mode, u_char interlaced, int *outScreenHeight) |
|
|
|
|
|
|
|
|
void display_reset(int mode, u_char interlaced, u_char widescreen, int *outScreenHeight) |
|
|
{ |
|
|
{ |
|
|
if (mode != GetVideoMode()) |
|
|
if (mode != GetVideoMode()) |
|
|
SetVideoMode(mode); |
|
|
SetVideoMode(mode); |
|
|
@ -125,6 +125,9 @@ void display_reset(int mode, u_char interlaced, int *outScreenHeight) |
|
|
disp[0].isinter = disp[1].isinter = 0; |
|
|
disp[0].isinter = disp[1].isinter = 0; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Scale X coordinates to set the aspect ratio for 4:3 or 16:9 widescreen |
|
|
|
|
|
aspect_scale.vx = SCREENWIDTH * ONE / (widescreen ? 426 : 320); |
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
|
|
|
|