diff options
author | Marcus Comstedt | 2004-08-29 19:42:27 +0000 |
---|---|---|
committer | Marcus Comstedt | 2004-08-29 19:42:27 +0000 |
commit | c7a7f00577e610e349d088f67acb5c7b9f12b9ba (patch) | |
tree | 96b0d46648a94da5648b78fe3285c5ed69835d9c /backends | |
parent | 76e72ce98d30798146269a5ec58ae9ead7fbcce4 (diff) | |
download | scummvm-rg350-c7a7f00577e610e349d088f67acb5c7b9f12b9ba.tar.gz scummvm-rg350-c7a7f00577e610e349d088f67acb5c7b9f12b9ba.tar.bz2 scummvm-rg350-c7a7f00577e610e349d088f67acb5c7b9f12b9ba.zip |
Clear screen and overlay buffer after allocation.
svn-id: r14832
Diffstat (limited to 'backends')
-rw-r--r-- | backends/dc/display.cpp | 2 |
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, |