diff options
author | quou <quou@disroot.org> | 2024-07-13 23:38:53 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-07-13 23:38:53 +1000 |
commit | 5f59b1517ef18d85e6dd05f2985e5a441deb5cac (patch) | |
tree | a9702f84da94cc149b5e7033cf78d8bd70d5f392 | |
parent | d848586c8aa8ff7d12601ba75f2a2bd9610f3500 (diff) |
+y is up
-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; |