enable screenshots for librw

This commit is contained in:
aap 2021-01-21 10:19:01 +01:00
parent 8e825fa629
commit 6df52f06b6
2 changed files with 8 additions and 0 deletions

View File

@ -202,6 +202,10 @@ psGrabScreen(RwCamera *pCamera)
RwImageSetFromRaster(pImage, pRaster); RwImageSetFromRaster(pImage, pRaster);
return pImage; return pImage;
} }
#else
rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
if(image)
return image;
#endif #endif
return nil; return nil;
} }

View File

@ -249,6 +249,10 @@ psGrabScreen(RwCamera *pCamera)
RwImageSetFromRaster(pImage, pRaster); RwImageSetFromRaster(pImage, pRaster);
return pImage; return pImage;
} }
#else
rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
if(image)
return image;
#endif #endif
return nil; return nil;
} }