mirror of
https://github.com/GTAmodding/re3.git
synced 2025-10-09 17:00:33 +00:00
Merge branch 'master' into miami
# Conflicts: # src/control/Darkel.cpp # src/core/main.cpp
This commit is contained in:
commit
9956b27767
10 changed files with 96 additions and 7 deletions
|
@ -185,6 +185,22 @@ psCameraShowRaster(RwCamera *camera)
|
|||
return;
|
||||
}
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/*
|
||||
*****************************************************************************
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue