aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin_lib.c
diff options
context:
space:
mode:
authornotaz2011-03-12 22:09:04 +0200
committernotaz2011-03-14 00:59:31 +0200
commit29a8c4f3e7fee7678e4b18de1748b9c4255dcef2 (patch)
tree933c42d696ae5f7ff3c6f0cf5c32aae71017d4c9 /frontend/plugin_lib.c
parent9411ba241f8f6ea0926a76c13a3329a95856b420 (diff)
downloadpcsx_rearmed-29a8c4f3e7fee7678e4b18de1748b9c4255dcef2.tar.gz
pcsx_rearmed-29a8c4f3e7fee7678e4b18de1748b9c4255dcef2.tar.bz2
pcsx_rearmed-29a8c4f3e7fee7678e4b18de1748b9c4255dcef2.zip
frontend: add screenshot functionality
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r--frontend/plugin_lib.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c
index 5cf1ff4..46c9cbd 100644
--- a/frontend/plugin_lib.c
+++ b/frontend/plugin_lib.c
@@ -131,6 +131,15 @@ void pl_fbdev_close(void)
omap_enable_layer(0);
}
+void *pl_prepare_screenshot(int *w, int *h, int *bpp)
+{
+ *w = pl_fbdev_w;
+ *h = pl_fbdev_h;
+ *bpp = pl_fbdev_bpp;
+
+ return pl_fbdev_buf;
+}
+
static void update_input(void)
{
int actions[IN_BINDTYPE_COUNT] = { 0, };