From 24de9f92e8513cfe0f6eedc6b69b3ff5bc282ffe Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 21 Jan 2021 10:21:42 +0100 Subject: enable screenshots for librw; update librw --- src/skel/win/win.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/skel/win') diff --git a/src/skel/win/win.cpp b/src/skel/win/win.cpp index 1fd959f2..a5f721c8 100644 --- a/src/skel/win/win.cpp +++ b/src/skel/win/win.cpp @@ -257,6 +257,10 @@ psGrabScreen(RwCamera *pCamera) RwImageSetFromRaster(pImage, pRaster); return pImage; } +#else + rw::Image *image = RwCameraGetRaster(pCamera)->toImage(); + if(image) + return image; #endif return nil; } -- cgit v1.2.3