[chocolate-doom] 40/83: Clear disk image when loading at startup

Jonathan Dowland jmtd at moszumanska.debian.org
Mon Jan 30 15:06:24 UTC 2017


This is an automated email from the git hooks/post-receive script.

jmtd pushed a commit to annotated tag chocolate-doom-0.0.1
in repository chocolate-doom.

commit 59711d6977d4fe97b902dbe31dd3900773ba7187
Author: Simon Howard <fraggle at gmail.com>
Date:   Sun Aug 7 02:59:23 2005 +0000

    Clear disk image when loading at startup
    
    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 46
---
 src/i_video.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/i_video.c b/src/i_video.c
index 9b285e3..3dd28cd 100644
--- a/src/i_video.c
+++ b/src/i_video.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: i_video.c 44 2005-08-06 17:30:30Z fraggle $
+// $Id: i_video.c 46 2005-08-07 02:59:23Z fraggle $
 //
 // Copyright(C) 1993-1996 Id Software, Inc.
 // Copyright(C) 2005 Simon Howard
@@ -22,6 +22,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.15  2005/08/07 02:59:23  fraggle
+// Clear disk image when loading at startup
+//
 // Revision 1.14  2005/08/06 17:30:30  fraggle
 // Only change palette on screen updates
 //
@@ -75,7 +78,7 @@
 //-----------------------------------------------------------------------------
 
 static const char
-rcsid[] = "$Id: i_video.c 44 2005-08-06 17:30:30Z fraggle $";
+rcsid[] = "$Id: i_video.c 46 2005-08-07 02:59:23Z fraggle $";
 
 #include <ctype.h>
 #include <SDL.h>
@@ -187,6 +190,7 @@ static void LoadDiskImage(void)
         memcpy(disk_image + disk_image_w * y,
                screens[0] + SCREENWIDTH * y,
                disk_image_w);
+        memset(screens[0] + SCREENWIDTH * y, 0, disk_image_w);
     }
 
     Z_Free(disk);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git



More information about the Pkg-games-commits mailing list