mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 05:36:12 +00:00
ANDROID: Clear screen on initSize()
This commit is contained in:
parent
94db3403a3
commit
d2dd614996
@ -266,6 +266,11 @@ void OSystem_Android::initSize(uint width, uint height,
|
|||||||
// setMouseCursor however, so just take a guess at the desired
|
// setMouseCursor however, so just take a guess at the desired
|
||||||
// size (it's small).
|
// size (it's small).
|
||||||
_mouse_texture_palette->allocBuffer(20, 20);
|
_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 {
|
int OSystem_Android::getScreenChangeID() const {
|
||||||
@ -529,9 +534,6 @@ void OSystem_Android::copyRectToOverlay(const OverlayColor *buf, int pitch,
|
|||||||
|
|
||||||
GLTHREADCHECK;
|
GLTHREADCHECK;
|
||||||
|
|
||||||
const Graphics::Surface *surface = _overlay_texture->surface_const();
|
|
||||||
assert(surface->bytesPerPixel == sizeof(buf[0]));
|
|
||||||
|
|
||||||
// This 'pitch' is pixels not bytes
|
// This 'pitch' is pixels not bytes
|
||||||
_overlay_texture->updateBuffer(x, y, w, h, buf, pitch * sizeof(buf[0]));
|
_overlay_texture->updateBuffer(x, y, w, h, buf, pitch * sizeof(buf[0]));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user