From 4c6f7f95b24af8ea38497e5cd0252d7804e5026b Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Thu, 30 Nov 2023 06:51:23 +0100 Subject: [PATCH] Move vertical flip out of Con_ScreenToCanvas --- Quake/console.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Quake/console.c b/Quake/console.c index 32f991771..fc7cc4542 100644 --- a/Quake/console.c +++ b/Quake/console.c @@ -157,8 +157,6 @@ static void Con_ScreenToCanvas (int x, int y, int *outx, int *outy) x = (int) (px + 0.5f); y = (int) (py + 0.5f); - y = vid.conheight - y; - *outx = x; *outy = y; } @@ -178,6 +176,9 @@ static qboolean Con_ScreenToOffset (int x, int y, conofs_t *ofs, contest_t testm Con_ScreenToCanvas (x, y, &x, &y); +// Start from the bottom of the console + y = vid.conheight - y; + // Apply rounding if (testmode == CT_NEAREST) x += 4;