ANDROID: Do not access Surface::pixels directly.
This commit is contained in:
parent
9179f0b78f
commit
d9b90d67d3
2 changed files with 7 additions and 7 deletions
|
@ -552,7 +552,7 @@ Graphics::Surface *OSystem_Android::lockScreen() {
|
|||
GLTHREADCHECK;
|
||||
|
||||
Graphics::Surface *surface = _game_texture->surface();
|
||||
assert(surface->pixels);
|
||||
assert(surface->getPixels());
|
||||
|
||||
return surface;
|
||||
}
|
||||
|
@ -645,7 +645,7 @@ void OSystem_Android::grabOverlay(void *buf, int pitch) {
|
|||
assert(surface->format.bytesPerPixel == sizeof(uint16));
|
||||
|
||||
byte *dst = (byte *)buf;
|
||||
const byte *src = (const byte *)surface->pixels;
|
||||
const byte *src = (const byte *)surface->getPixels();
|
||||
uint h = surface->h;
|
||||
|
||||
do {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue