mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 07:05:41 +00:00
enable screenshots for librw
This commit is contained in:
parent
8e825fa629
commit
6df52f06b6
2 changed files with 8 additions and 0 deletions
|
@ -202,6 +202,10 @@ psGrabScreen(RwCamera *pCamera)
|
|||
RwImageSetFromRaster(pImage, pRaster);
|
||||
return pImage;
|
||||
}
|
||||
#else
|
||||
rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
|
||||
if(image)
|
||||
return image;
|
||||
#endif
|
||||
return nil;
|
||||
}
|
||||
|
|
|
@ -249,6 +249,10 @@ psGrabScreen(RwCamera *pCamera)
|
|||
RwImageSetFromRaster(pImage, pRaster);
|
||||
return pImage;
|
||||
}
|
||||
#else
|
||||
rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
|
||||
if(image)
|
||||
return image;
|
||||
#endif
|
||||
return nil;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue