diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-02 13:45:37 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-09 17:07:42 +0200 |
commit | 8ea411e4c5c7191b0e67f0c569a32733b99a81bc (patch) | |
tree | 1430b1ca3c3fa3876c2e6377f7c9ec63e26702d9 /src/fakerw/fake.cpp | |
parent | small fix (diff) | |
download | re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.tar re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.tar.gz re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.tar.bz2 re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.tar.lz re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.tar.xz re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.tar.zst re3-8ea411e4c5c7191b0e67f0c569a32733b99a81bc.zip |
Diffstat (limited to 'src/fakerw/fake.cpp')
-rw-r--r-- | src/fakerw/fake.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp index 1d4c881f..6dfebb39 100644 --- a/src/fakerw/fake.cpp +++ b/src/fakerw/fake.cpp @@ -235,8 +235,8 @@ RwRaster *RwRasterGetCurrentContext(void) { return Raster::getCurrentContext( RwBool RwRasterClear(RwInt32 pixelValue); RwBool RwRasterClearRect(RwRect * rpRect, RwInt32 pixelValue); RwRaster *RwRasterShowRaster(RwRaster * raster, void *dev, RwUInt32 flags); -RwUInt8 *RwRasterLock(RwRaster * raster, RwUInt8 level, RwInt32 lockMode); -RwRaster *RwRasterUnlock(RwRaster * raster); +RwUInt8 *RwRasterLock(RwRaster * raster, RwUInt8 level, RwInt32 lockMode) { return raster->lock(level, lockMode); } +RwRaster *RwRasterUnlock(RwRaster * raster) { raster->unlock(0); return raster; } RwUInt8 *RwRasterLockPalette(RwRaster * raster, RwInt32 lockMode); RwRaster *RwRasterUnlockPalette(RwRaster * raster); RwInt32 RwRasterRegisterPlugin(RwInt32 size, RwUInt32 pluginID, RwPluginObjectConstructor constructCB, RwPluginObjectDestructor destructCB, RwPluginObjectCopy copyCB); |