aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authornotaz2012-11-13 02:28:41 +0200
committernotaz2012-11-13 02:28:41 +0200
commitc65553d0cafc353daad3fdcc0aab63bb8427a809 (patch)
tree1c98a01dcf48755518405457b1ba0593465e7a2f /plugins
parent7851087ded290440ef7490f7725a7b78602bd736 (diff)
downloadpcsx_rearmed-c65553d0cafc353daad3fdcc0aab63bb8427a809.tar.gz
pcsx_rearmed-c65553d0cafc353daad3fdcc0aab63bb8427a809.tar.bz2
pcsx_rearmed-c65553d0cafc353daad3fdcc0aab63bb8427a809.zip
fix some random corner cases
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gpulib/gpu.c2
-rw-r--r--plugins/gpulib/vout_pl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gpulib/gpu.c b/plugins/gpulib/gpu.c
index b61bff6..b300c88 100644
--- a/plugins/gpulib/gpu.c
+++ b/plugins/gpulib/gpu.c
@@ -212,7 +212,7 @@ void GPUwriteStatus(uint32_t data)
break;
case 0x05:
gpu.screen.x = data & 0x3ff;
- gpu.screen.y = (data >> 10) & 0x3ff;
+ gpu.screen.y = (data >> 10) & 0x1ff;
if (gpu.frameskip.set) {
decide_frameskip_allow(gpu.ex_regs[3]);
if (gpu.frameskip.last_flip_frame != *gpu.state.frame_count) {
diff --git a/plugins/gpulib/vout_pl.c b/plugins/gpulib/vout_pl.c
index 11307e2..7b229db 100644
--- a/plugins/gpulib/vout_pl.c
+++ b/plugins/gpulib/vout_pl.c
@@ -72,8 +72,8 @@ void vout_update(void)
if (y + h > vram_h) {
if (y + h - vram_h > h / 2) {
// wrap
- y = 0;
h -= vram_h - y;
+ y = 0;
}
else
// clip