aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/dc/display.cpp2
1 files changed, 2 insertions, 0 deletions
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,