aboutsummaryrefslogtreecommitdiff
path: root/plugins/gpulib
diff options
context:
space:
mode:
authornotaz2012-08-13 02:53:21 +0300
committernotaz2012-10-12 00:05:07 +0300
commitf1359c5758c2e745b1cbec63e21445fa65f7cafe (patch)
treec4656405fc748523e2cfca027586b4facaf47d44 /plugins/gpulib
parentc1817bd9249ee616cf9545a57136d6dd3669ce34 (diff)
downloadpcsx_rearmed-f1359c5758c2e745b1cbec63e21445fa65f7cafe.tar.gz
pcsx_rearmed-f1359c5758c2e745b1cbec63e21445fa65f7cafe.tar.bz2
pcsx_rearmed-f1359c5758c2e745b1cbec63e21445fa65f7cafe.zip
psx_gpu: switch enhancement to 2048 width
otherwise games that position framebuffers horizontally corrupt the display.
Diffstat (limited to 'plugins/gpulib')
-rw-r--r--plugins/gpulib/vout_pl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c
index 47c28f3..5131034 100644
--- a/plugins/gpulib/vout_pl.c
+++ b/plugins/gpulib/vout_pl.c
@@ -78,7 +78,8 @@ static void blit(void)
w *= 2;
h *= 2;
stride *= 2;
- vram_mask = 1024 * 1024 - 1;
+ vram_stride = 2048;
+ vram_mask = 2048 * 1024 - 1;
}
fb_offs = y * vram_stride + x;