X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=frontend%2Fplugin_lib.c;h=d69a0b41529aaf0bee10d18afff52bb82ac29ee4;hb=e7267688b48c7e6619cab3dafe61212b166b389b;hp=0ca45ce602deb9e7bd78509d1e8a5d3228a6f9d0;hpb=6d1a1ac2f1100c69dd3e1084aede6646d6c48f1e;p=pcsx_rearmed.git diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index 0ca45ce6..d69a0b41 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -85,7 +85,7 @@ int pl_fbdev_set_mode(int w, int h, int bpp) return (ret != NULL) ? 0 : -1; } -void pl_fbdev_flip(void) +void *pl_fbdev_flip(void) { flip_cnt++; if (g_opts & OPT_SHOWFPS) @@ -95,6 +95,7 @@ void pl_fbdev_flip(void) // let's flip now pl_fbdev_buf = vout_fbdev_flip(layer_fb); + return pl_fbdev_buf; } int pl_fbdev_open(void) @@ -189,3 +190,19 @@ void pl_text_out16(int x, int y, const char *texto, ...) pl_text_out16_(x, y, buffer); } +static void pl_get_layer_pos(int *x, int *y, int *w, int *h) +{ + *x = g_layer_x; + *y = g_layer_y; + *w = g_layer_w; + *h = g_layer_h; +} + +const struct rearmed_cbs pl_rearmed_cbs = { + pl_get_layer_pos, + pl_fbdev_open, + pl_fbdev_set_mode, + pl_fbdev_flip, + pl_fbdev_close, +}; +