summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@localhost>2011-05-27 14:13:53 +0000
committercinap_lenrek <cinap_lenrek@localhost>2011-05-27 14:13:53 +0000
commitddfc34d648ca21ff2c1eeab72cee2a960b8357fc (patch)
tree7c234dc557af3da84061f2263eb8b52074bb5fac
parent42cd9d946fa0da422c16edbb85c9c29e0a2f2437 (diff)
games/doom: use black background
-rw-r--r--sys/src/games/doom/i_video.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/src/games/doom/i_video.c b/sys/src/games/doom/i_video.c
index 582e0930d..5c9b1e1ff 100644
--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -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);
}