From c7a7f00577e610e349d088f67acb5c7b9f12b9ba Mon Sep 17 00:00:00 2001 From: Marcus Comstedt Date: Sun, 29 Aug 2004 19:42:27 +0000 Subject: Clear screen and overlay buffer after allocation. svn-id: r14832 --- backends/dc/display.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/dc/display.cpp b/backends/dc/display.cpp index 53aa2f9a8a..97bf65be93 100644 --- a/backends/dc/display.cpp +++ b/backends/dc/display.cpp @@ -190,6 +190,8 @@ void OSystem_Dreamcast::initSize(uint w, uint h) _overlay_dirty = true; *(volatile unsigned int *)(0xa05f80e4) = SCREEN_W/32; //stride // dc_reset_screen(0, 0); + memset(screen, 0, SCREEN_W*SCREEN_H); + memset(overlay, 0, OVL_W*OVL_H*sizeof(unsigned short)); } void OSystem_Dreamcast::copyRectToScreen(const byte *buf, int pitch, int x, int y, -- cgit v1.2.3