|
|
@ -45,6 +45,8 @@ u_long *curOT; |
|
|
// video mode and widescreen options to maintain a consistent aspect ratio. |
|
|
// video mode and widescreen options to maintain a consistent aspect ratio. |
|
|
VECTOR aspect_scale = { SCREENWIDTH * ONE / 320, ONE, ONE }; |
|
|
VECTOR aspect_scale = { SCREENWIDTH * ONE / 320, ONE, ONE }; |
|
|
|
|
|
|
|
|
|
|
|
P_COLOR clearColor = { 0 }; |
|
|
|
|
|
|
|
|
u_short polyCount; |
|
|
u_short polyCount; |
|
|
u_char enableTexturing = 1; |
|
|
u_char enableTexturing = 1; |
|
|
u_char enableVsync = 0; |
|
|
u_char enableVsync = 0; |
|
|
@ -141,8 +143,8 @@ void display_reset(int mode, u_char interlaced, u_char widescreen, int *outScree |
|
|
disp[0].screen.h = disp[1].screen.h = screenHeight; |
|
|
disp[0].screen.h = disp[1].screen.h = screenHeight; |
|
|
|
|
|
|
|
|
// Set and enable clear color |
|
|
// Set and enable clear color |
|
|
setRGB0(&draw[0], 0, 0, 0); |
|
|
|
|
|
setRGB0(&draw[1], 0, 0, 0); |
|
|
|
|
|
|
|
|
setColor0(&draw[0], clearColor.color); |
|
|
|
|
|
setColor0(&draw[1], clearColor.color); |
|
|
draw[0].isbg = 1; |
|
|
draw[0].isbg = 1; |
|
|
draw[0].dtd = 1; |
|
|
draw[0].dtd = 1; |
|
|
draw[1].isbg = 1; |
|
|
draw[1].isbg = 1; |
|
|
@ -154,6 +156,13 @@ void display_reset(int mode, u_char interlaced, u_char widescreen, int *outScree |
|
|
*outScreenHeight = screenHeight; |
|
|
*outScreenHeight = screenHeight; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void display_setClearColor(u_char color[4]) |
|
|
|
|
|
{ |
|
|
|
|
|
clearColor = *((P_COLOR*)color); |
|
|
|
|
|
setColor0(&draw[0], clearColor.color); |
|
|
|
|
|
setColor0(&draw[1], clearColor.color); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void display_start() |
|
|
void display_start() |
|
|
{ |
|
|
{ |
|
|
curOT = ot[db]; |
|
|
curOT = ot[db]; |
|
|
|