|
|
@ -57,14 +57,6 @@ void display_init() |
|
|
int screenHeight; |
|
|
int screenHeight; |
|
|
display_reset(GetVideoMode(), 0, &screenHeight); |
|
|
display_reset(GetVideoMode(), 0, &screenHeight); |
|
|
|
|
|
|
|
|
// Set and enable clear color |
|
|
|
|
|
setRGB0(&draw[0], 49, 77, 121); |
|
|
|
|
|
setRGB0(&draw[1], 49, 77, 121); |
|
|
|
|
|
draw[0].isbg = 1; |
|
|
|
|
|
draw[0].dtd = 1; |
|
|
|
|
|
draw[1].isbg = 1; |
|
|
|
|
|
draw[1].dtd = 1; |
|
|
|
|
|
|
|
|
|
|
|
// Clear double buffer counter |
|
|
// Clear double buffer counter |
|
|
db = 0; |
|
|
db = 0; |
|
|
|
|
|
|
|
|
@ -134,6 +126,14 @@ void display_reset(int mode, u_char interlaced, int *outScreenHeight) |
|
|
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; |
|
|
|
|
|
|
|
|
|
|
|
// Set and enable clear color |
|
|
|
|
|
setRGB0(&draw[0], 49, 77, 121); |
|
|
|
|
|
setRGB0(&draw[1], 49, 77, 121); |
|
|
|
|
|
draw[0].isbg = 1; |
|
|
|
|
|
draw[0].dtd = 1; |
|
|
|
|
|
draw[1].isbg = 1; |
|
|
|
|
|
draw[1].dtd = 1; |
|
|
|
|
|
|
|
|
gte_SetGeomOffset(SCREENWIDTH >> 1, screenHeight >> 1); |
|
|
gte_SetGeomOffset(SCREENWIDTH >> 1, screenHeight >> 1); |
|
|
|
|
|
|
|
|
if (outScreenHeight != NULL) |
|
|
if (outScreenHeight != NULL) |
|
|
|