From e927a7fead25613823880427fff7c24a3d65e78a Mon Sep 17 00:00:00 2001 From: notaz Date: Sun, 8 Mar 2026 02:47:51 +0200 Subject: [PATCH] plugin_lib: fix broken blit --- frontend/plugin_lib.c | 2 +- plugins/gpulib/vout_pl.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/plugin_lib.c b/frontend/plugin_lib.c index d55b861e..f17b6b4c 100644 --- a/frontend/plugin_lib.c +++ b/frontend/plugin_lib.c @@ -423,7 +423,7 @@ static void pl_vout_flip(const void *vram_, int vram_ofs, int bgr24, dest -= dstride * 2 * h; dest += (w - hwrapped / 3) * 2; for (h1 = h; h1-- > 0; dest += dstride * 2) { - blit(dest, vram + vram_ofs, hwrapped / 2); + blit(dest, vram + vram_ofs, hwrapped / 3); vram_ofs = (vram_ofs + sstride) & 0xfffff; } } diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c index 703d4905..b96d9c28 100644 --- a/plugins/gpulib/vout_pl.c +++ b/plugins/gpulib/vout_pl.c @@ -35,7 +35,7 @@ static void check_mode_change(struct psx_gpu *gpu, int force) h = gpu->screen.h; w_out = w, h_out = h; #ifdef RAW_FB_DISPLAY - w = w_out = (gpu.status & PSX_GPU_STATUS_RGB24) ? 2048/3 : 1024; + w = w_out = (gpu->status & PSX_GPU_STATUS_RGB24) ? 2048/3 : 1024; h = h_out = 512; #endif gpu->state.enhancement_active = @@ -78,7 +78,7 @@ int vout_update(struct psx_gpu *gpu, int src_x, int src_y) int offset; #ifdef RAW_FB_DISPLAY - w = (gpu.status & PSX_GPU_STATUS_RGB24) ? 2048/3 : 1024; + w = (gpu->status & PSX_GPU_STATUS_RGB24) ? 2048/3 : 1024; h = 512, x = src_x = y = src_y = 0; #endif if (x < 0) { w += x; src_x2 = -x; x = 0; } -- 2.47.3