AVALANCHE: Do not set pixels directly

This commit is contained in:
Strangerke 2013-09-08 15:20:41 +02:00
parent 599d2eeb06
commit b60767fce8
2 changed files with 2 additions and 2 deletions

View file

@ -309,7 +309,7 @@ void Graphics::refreshScreen() {
}
}
// Now we copy the stretched picture to the screen.
g_system->copyRectToScreen(_screen.pixels, _screen.pitch, 0, 0, kScreenWidth, kScreenHeight * 2);
g_system->copyRectToScreen(_screen.getPixels(), _screen.pitch, 0, 0, kScreenWidth, kScreenHeight * 2);
g_system->updateScreen();
}

View file

@ -499,7 +499,7 @@ void Gyro::loadMouse(byte which) {
mask.free();
f.close();
CursorMan.replaceCursor(cursor.pixels, 16, 32, kMouseHotSpots[which - 1]._horizontal, kMouseHotSpots[which - 1]._vertical * 2, 255, false);
CursorMan.replaceCursor(cursor.getPixels(), 16, 32, kMouseHotSpots[which - 1]._horizontal, kMouseHotSpots[which - 1]._vertical * 2, 255, false);
cursor.free();
}