ref: ddfc34d648ca21ff2c1eeab72cee2a960b8357fc
parent: 42cd9d946fa0da422c16edbb85c9c29e0a2f2437
author: cinap_lenrek <cinap_lenrek@localhost>
date: Fri May 27 10:13:53 EDT 2011
games/doom: use black background
--- a/sys/src/games/doom/i_video.c
+++ b/sys/src/games/doom/i_video.c
@@ -34,9 +34,11 @@
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 @@
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);
}