diff options
-rw-r--r-- | maths.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -263,8 +263,8 @@ void persp(int* v, int asp) { void ndc2clip(int* c, int* p) { register int hw = c[2] >> 1; register int hh = c[3] >> 1; - p[0] = ((hw << fbits) * p[0]) >> fbits; - p[1] = ((hh << fbits) * p[1]) >> fbits; + p[0] = ((hw << fbits) * p[0]) >> fbits; + p[1] = ((hh << fbits) * -p[1]) >> fbits; p[0] >>= fbits; p[1] >>= fbits; p[0] += hw; |