games/doom: use black background
This commit is contained in:
parent
42cd9d946f
commit
ddfc34d648
1 changed files with 7 additions and 1 deletions
|
@ -34,9 +34,11 @@ nocursor(void)
|
|||
|
||||
void I_InitGraphics(void)
|
||||
{
|
||||
if (initdraw(nil, nil, "doom") < 0)
|
||||
if(initdraw(nil, nil, "doom") < 0)
|
||||
I_Error("I_InitGraphics failed");
|
||||
|
||||
draw(screen, screen->r, display->black, nil, ZP);
|
||||
|
||||
center = addpt(screen->r.min, Pt(Dx(screen->r)/2, Dy(screen->r)/2));
|
||||
grabout = insetrect(screen->r, Dx(screen->r)/8);
|
||||
nocursor();
|
||||
|
@ -73,6 +75,10 @@ void I_FinishUpdate(void)
|
|||
resized = 0;
|
||||
if(getwindow(display, Refnone) < 0)
|
||||
sysfatal("getwindow failed: %r");
|
||||
|
||||
/* make black background */
|
||||
draw(screen, screen->r, display->black, nil, ZP);
|
||||
|
||||
center = addpt(screen->r.min, Pt(Dx(screen->r)/2, Dy(screen->r)/2));
|
||||
grabout = insetrect(screen->r, Dx(screen->r)/8);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue