mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-12 17:20:07 +01:00
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:
1 parent
a1507e6044
commit
441aee367e
16 files changed
+59
-56
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user