diff options
author | Sergeanur <s.anureev@yandex.ua> | 2020-08-14 17:57:23 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2020-08-14 17:57:23 +0200 |
commit | e7945625b59750459ff4876f7e076b4b8d5c3aee (patch) | |
tree | 0021cf5c59fa4e9600b732d221627c349eb0fc5d /src/skel/win/win.cpp | |
parent | Darkel fixes (diff) | |
download | re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.gz re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.bz2 re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.lz re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.xz re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.tar.zst re3-e7945625b59750459ff4876f7e076b4b8d5c3aee.zip |
Diffstat (limited to 'src/skel/win/win.cpp')
-rw-r--r-- | src/skel/win/win.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index cf4749b1..a064788c 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -241,6 +241,23 @@ psCameraShowRaster(RwCamera *camera) /* ***************************************************************************** */ +RwImage * +psGrabScreen(RwCamera *pCamera) +{ +#ifndef LIBRW + RwRaster *pRaster = RwCameraGetRaster(pCamera); + if (RwImage *pImage = RwImageCreate(pRaster->width, pRaster->height, 32)) { + RwImageAllocatePixels(pImage); + RwImageSetFromRaster(pImage, pRaster); + return pImage; + } +#endif + return nil; +} + +/* + ***************************************************************************** + */ RwUInt32 psTimer(void) { |