X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=frontend%2Fplugin_lib.c;h=e93c12f949c368d6bee5049136524ec420058021;hb=95df1a043efd3a11b3cdf90d647fc1b3a96a2c88;hp=0e697439ebe2a2443794c1707f2f69f49cac4ccd;hpb=faf2b2aae80c811f778f7cfa9a320dd7ade01dac;p=pcsx_rearmed.git diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 0e697439..e93c12f9 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) @@ -470,8 +475,12 @@ void pl_start_watchdog(void) void pl_init(void) { + extern unsigned int hSyncCount; // from psxcounters + pl_vout_w = pl_vout_h = 256; pl_vout_bpp = 16; tsdev = pl_gun_ts_init(); + + pl_rearmed_cbs.gpu_hcnt = &hSyncCount; }