AVALANCHE: Do not set pixels directly
This commit is contained in:
parent
599d2eeb06
commit
b60767fce8
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue