X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=pcsx_rearmed.git;a=blobdiff_plain;f=frontend%2Flibretro.c;h=180c1d7274683f5ad5525506d44306e597a6ce32;hp=49e346b5cf6d1450cd466bd34809c73850266d25;hb=2ee53c487bfaa112fec8f740ae05717a79994264;hpb=46aa5b98890412bca8487b28809df3ece137dba9 diff --git a/frontend/libretro.c b/frontend/libretro.c index 49e346b5..180c1d72 100644 --- a/frontend/libretro.c +++ b/frontend/libretro.c @@ -62,6 +62,9 @@ static void convert(void *buf, size_t bytes) } #endif +static unsigned game_width; +static unsigned game_height; + static void vout_flip(const void *vram, int stride, int bgr24, int w, int h) { unsigned short *dest = vout_buf; @@ -94,7 +97,8 @@ out: #ifndef FRONTEND_SUPPORTS_RGB565 convert(vout_buf, w * h * 2); #endif - video_cb(vout_buf, w, h, w * 2); + game_width = w; + game_height = h; pl_rearmed_cbs.flip_cnt++; } @@ -353,6 +357,7 @@ void retro_run(void) psxCpu->Execute(); samples_to_send += 44100 / 60; + video_cb(vout_buf, game_width, game_height, game_width * 2); } void retro_init(void)