GSdx: fixed a few more typos in GSVector4i, the black screen bug should be gone

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1192 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gabest11 committed 2009-05-15 11:11:26 +00:00
1 parent a1507e6044
commit 441aee367e
16 files changed
+59 -56

No files matched your search

+6 -6
View File
@@ -58,17 +58,17 @@ GSVector4i GSVector4i::fit(int arx, int ary) const
if(w * ary > h * arx)
{
int w2 = h * arx / ary;
r.left = (r.left + r.right - w2) >> 1;
w = h * arx / ary;
r.left = (r.left + r.right - w) >> 1;
if(r.left & 1) r.left++;
r.right = r.left + w2;
r.right = r.left + w;
}
else
{
int h2 = w * ary / arx;
r.top = (r.top + r.bottom - h2) >> 1;
h = w * ary / arx;
r.top = (r.top + r.bottom - h) >> 1;
if(r.top & 1) r.top++;
r.bottom = r.top + h2;
r.bottom = r.top + h;
}
r = r.rintersect(*this);