mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-05 05:44:55 +01:00
gsdx hack: Correct formulae for reversed texture
It fixes issues on Ace Combat UI
This commit is contained in:
1 parent
418f2e69a8
commit
cde72300a5
1 file changed
+4
-4
@@ -296,7 +296,7 @@ void GSRendererHW::RoundSpriteOffset()
|
||||
v[i+1].U = tx1 - half + 16;
|
||||
} else {
|
||||
v[i].U = tx0 + 15;
|
||||
v[i+1].U = tx1 + 15 + 16;
|
||||
v[i+1].U = tx1 + 15 - 16;
|
||||
}
|
||||
} else {
|
||||
if (tx0 <= tx1) {
|
||||
@@ -304,7 +304,7 @@ void GSRendererHW::RoundSpriteOffset()
|
||||
v[i+1].U = tx1 + 16;
|
||||
} else {
|
||||
v[i].U = tx0 + 15;
|
||||
v[i+1].U = tx1 + 15 + 16;
|
||||
v[i+1].U = tx1 + 15 - 16;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -315,7 +315,7 @@ void GSRendererHW::RoundSpriteOffset()
|
||||
v[i+1].V = ty1 - half + 16;
|
||||
} else {
|
||||
v[i].V = ty0 + 15;
|
||||
v[i+1].V = ty1 + 15 + 16;
|
||||
v[i+1].V = ty1 + 15 - 16;
|
||||
}
|
||||
} else {
|
||||
if (ty0 <= ty1) {
|
||||
@@ -323,7 +323,7 @@ void GSRendererHW::RoundSpriteOffset()
|
||||
v[i+1].V = ty1 + 16;
|
||||
} else {
|
||||
v[i].V = ty0 + 15;
|
||||
v[i+1].V = ty1 + 15 + 16;
|
||||
v[i+1].V = ty1 + 15 - 16;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user