diff options
author | dhewg | 2011-03-05 18:38:00 +0100 |
---|---|---|
committer | dhewg | 2011-03-05 18:47:05 +0100 |
commit | d2dd614996452f653d8a2710b55b9b3799350688 (patch) | |
tree | e3bf82dbf843843d31fe4bfef71eb3bae667cba4 /backends/platform/android | |
parent | 94db3403a3fbe228aa25cdde310e2a8daa5c33eb (diff) | |
download | scummvm-rg350-d2dd614996452f653d8a2710b55b9b3799350688.tar.gz scummvm-rg350-d2dd614996452f653d8a2710b55b9b3799350688.tar.bz2 scummvm-rg350-d2dd614996452f653d8a2710b55b9b3799350688.zip |
ANDROID: Clear screen on initSize()
Diffstat (limited to 'backends/platform/android')
-rw-r--r-- | backends/platform/android/gfx.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 1b7679d0e5..d6dc71fcfb 100644 --- a/backends/platform/android/gfx.cpp +++ b/backends/platform/android/gfx.cpp @@ -266,6 +266,11 @@ void OSystem_Android::initSize(uint width, uint height, // setMouseCursor however, so just take a guess at the desired // size (it's small). _mouse_texture_palette->allocBuffer(20, 20); + + // clear screen + GLCALL(glClearColorx(0, 0, 0, 1 << 16)); + GLCALL(glClear(GL_COLOR_BUFFER_BIT)); + JNI::swapBuffers(); } int OSystem_Android::getScreenChangeID() const { @@ -529,9 +534,6 @@ void OSystem_Android::copyRectToOverlay(const OverlayColor *buf, int pitch, GLTHREADCHECK; - const Graphics::Surface *surface = _overlay_texture->surface_const(); - assert(surface->bytesPerPixel == sizeof(buf[0])); - // This 'pitch' is pixels not bytes _overlay_texture->updateBuffer(x, y, w, h, buf, pitch * sizeof(buf[0])); |