summaryrefslogtreecommitdiffstats
path: root/src/skel
diff options
context:
space:
mode:
authorSergeanur <s.anureev@yandex.ua>2021-01-21 15:03:27 +0100
committerSergeanur <s.anureev@yandex.ua>2021-01-21 15:03:27 +0100
commited74182cc2da8f556705aaaeb3fcdeb8d5a47e7b (patch)
treebf7c4a978a3b446a14f4c2aa06965163f81dadcc /src/skel
parentMerge branch 'miami' into lcs (diff)
parentfix (diff)
downloadre3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.tar
re3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.tar.gz
re3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.tar.bz2
re3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.tar.lz
re3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.tar.xz
re3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.tar.zst
re3-ed74182cc2da8f556705aaaeb3fcdeb8d5a47e7b.zip
Diffstat (limited to 'src/skel')
-rw-r--r--src/skel/glfw/glfw.cpp4
-rw-r--r--src/skel/win/win.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/skel/glfw/glfw.cpp b/src/skel/glfw/glfw.cpp
index f039819c..9b2a768e 100644
--- a/src/skel/glfw/glfw.cpp
+++ b/src/skel/glfw/glfw.cpp
@@ -216,6 +216,10 @@ psGrabScreen(RwCamera *pCamera)
RwImageSetFromRaster(pImage, pRaster);
return pImage;
}
+#else
+ rw::Image *image = RwCameraGetRaster(pCamera)->toImage();
+ if(image)
+ return image;
#endif
return nil;
}
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;
}