diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-08-11 07:15:30 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-08-11 07:15:30 +0200 |
commit | 0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb (patch) | |
tree | 3ba3eaf691e615f0bab5686f05dc99a7139e3b5e /src/fakerw | |
parent | fix steam saves (diff) | |
download | re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.tar re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.tar.gz re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.tar.bz2 re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.tar.lz re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.tar.xz re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.tar.zst re3-0544beb00d5eaf6c974bb7ebcf1f871e3ce94cfb.zip |
Diffstat (limited to 'src/fakerw')
-rw-r--r-- | src/fakerw/fake.cpp | 4 | ||||
-rw-r--r-- | src/fakerw/rwcore.h | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/src/fakerw/fake.cpp b/src/fakerw/fake.cpp index e51a0821..ee779788 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); diff --git a/src/fakerw/rwcore.h b/src/fakerw/rwcore.h index e5d21865..ab0a719f 100644 --- a/src/fakerw/rwcore.h +++ b/src/fakerw/rwcore.h @@ -104,6 +104,14 @@ enum RwRasterFormat rwRASTERFORMATMASK = 0xff00 }; +enum RwRasterLockMode +{ + rwRASTERLOCKWRITE = rw::Raster::LOCKWRITE, + rwRASTERLOCKREAD = rw::Raster::LOCKREAD, + rwRASTERLOCKNOFETCH = rw::Raster::LOCKNOFETCH, + rwRASTERLOCKRAW = rw::Raster::LOCKRAW, +}; + enum RwRasterFlipMode { rwRASTERFLIPDONTWAIT = 0, |