From 5f59b1517ef18d85e6dd05f2985e5a441deb5cac Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 13 Jul 2024 23:38:53 +1000 Subject: +y is up --- maths.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/maths.c b/maths.c index f6f1912..64e1a24 100644 --- a/maths.c +++ b/maths.c @@ -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; -- cgit v1.2.3-54-g00ecf