From f058e38f5ba67f0e2e4e547b93799b948e808fe2 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Mon, 28 Jun 2010 10:54:26 +0000 Subject: [PATCH] zzogl-pg: Commit patch from zzogl-213 for shaking when interlace is on in FFX-2. (Issue 768). git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3334 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/ZZoglCRTC.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/zzogl-pg/opengl/ZZoglCRTC.cpp b/plugins/zzogl-pg/opengl/ZZoglCRTC.cpp index 3cafa0a399..90e5160dd7 100644 --- a/plugins/zzogl-pg/opengl/ZZoglCRTC.cpp +++ b/plugins/zzogl-pg/opengl/ZZoglCRTC.cpp @@ -527,6 +527,12 @@ inline void RenderCheckForTargets(tex0Info& texframe, list& list if (ptarg->fbh - dby < texframe.th - movy && !(*bUsingStencil)) RenderUpdateStencil(i, bUsingStencil); + else if (ptarg->fbh - dby > 2 * ( texframe.th - movy )) + { + // Sometimes calculated position onscreen is misaligned, ie in FFX-2 intro. In such case some part of image are out of + // border's and we should move it manually. + dby -= ((ptarg->fbh - dby) >> 2) - ((texframe.th + movy) >> 1) ; + } SetShaderCaller("RenderCheckForTargets");