aboutsummaryrefslogtreecommitdiff
path: root/frontend/plugin_lib.c
diff options
context:
space:
mode:
authornotaz2011-10-29 01:15:39 +0300
committernotaz2011-10-30 23:48:09 +0200
commit478216725b77d1c7fd45d972e3c596134633adba (patch)
tree375fee8a8f2cfa96a87c95fb6d812890baab20f6 /frontend/plugin_lib.c
parent3a721c1f5582bac7475788bb0018207a3deb2bca (diff)
downloadpcsx_rearmed-478216725b77d1c7fd45d972e3c596134633adba.tar.gz
pcsx_rearmed-478216725b77d1c7fd45d972e3c596134633adba.tar.bz2
pcsx_rearmed-478216725b77d1c7fd45d972e3c596134633adba.zip
frontend: fix screenshot functionality for pollux
Diffstat (limited to 'frontend/plugin_lib.c')
-rw-r--r--frontend/plugin_lib.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c
index 0e69743..9003ff8 100644
--- a/frontend/plugin_lib.c
+++ b/frontend/plugin_lib.c
@@ -24,6 +24,7 @@
#include "omap.h"
#include "menu.h"
#include "main.h"
+#include "plat.h"
#include "pcnt.h"
#include "pl_gun_ts.h"
#include "../libpcsxcore/new_dynarec/new_dynarec.h"
@@ -209,11 +210,15 @@ static void pl_vout_close(void)
void *pl_prepare_screenshot(int *w, int *h, int *bpp)
{
+#if defined(VOUT_FBDEV)
*w = pl_vout_w;
*h = pl_vout_h;
*bpp = pl_vout_bpp;
return pl_vout_buf;
+#else
+ return plat_prepare_screenshot(w, h, bpp);
+#endif
}
static void update_input(void)