Now clears the frame buffer before setting the mode; at least when testing,

one sometimes could still see previous contents of the screen during boot up
for some time.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23104 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2007-12-10 18:42:14 +00:00
parent 7846435ed2
commit 7825641a7b
@@ -433,6 +433,9 @@ if (first) {
return B_NO_MEMORY;
}
// clear frame buffer before using it
memset(sharedInfo.graphics_memory + offset, 0,
bytesPerRow * target.virtual_height);
sharedInfo.frame_buffer_offset = offset;
// make sure VGA display is disabled