gsdx hack: Correct formulae for reversed texture

It fixes issues on Ace Combat UI
This commit is contained in:
Gregory Hainaut 2015-04-13 22:06:34 +02:00
parent 418f2e69a8
commit cde72300a5
1 changed files with 4 additions and 4 deletions

View File

@ -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