mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-20 19:21:46 +00:00
DRACI: Take advantage of Surface::getPixels.
This commit is contained in:
parent
3fbc497e1c
commit
f8ffe816d6
@ -110,7 +110,7 @@ void Screen::copyToScreen() {
|
||||
|
||||
// If a full update is needed, update the whole screen
|
||||
if (_surface->needsFullUpdate()) {
|
||||
byte *ptr = (byte *)_surface->getBasePtr(0, 0);
|
||||
byte *ptr = (byte *)_surface->getPixels();
|
||||
|
||||
_vm->_system->copyRectToScreen(ptr, kScreenWidth,
|
||||
0, 0, kScreenWidth, kScreenHeight);
|
||||
@ -138,7 +138,7 @@ void Screen::copyToScreen() {
|
||||
* Clears the screen and marks the whole screen dirty.
|
||||
*/
|
||||
void Screen::clearScreen() {
|
||||
byte *ptr = (byte *)_surface->getBasePtr(0, 0);
|
||||
byte *ptr = (byte *)_surface->getPixels();
|
||||
|
||||
_surface->markDirty();
|
||||
|
||||
|
@ -80,7 +80,7 @@ void Surface::markClean() {
|
||||
* @brief Fills the surface with the specified color
|
||||
*/
|
||||
void Surface::fill(uint color) {
|
||||
byte *ptr = (byte *)getBasePtr(0, 0);
|
||||
byte *ptr = (byte *)getPixels();
|
||||
|
||||
memset(ptr, color, w * h);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user