plugin_lib: fix broken blit
authornotaz <notasas@gmail.com>
Sun, 8 Mar 2026 00:47:51 +0000 (02:47 +0200)
committernotaz <notasas@gmail.com>
Sun, 8 Mar 2026 01:41:21 +0000 (03:41 +0200)
frontend/plugin_lib.c
plugins/gpulib/vout_pl.c

index d55b861..f17b6b4 100644 (file)
@@ -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;
                                }
                        }
index 703d490..b96d9c2 100644 (file)
@@ -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; }