From b5c28eeea83dad33988b8b1a70e1ad17439e2f33 Mon Sep 17 00:00:00 2001 From: James R Date: Wed, 11 Oct 2023 18:23:23 -0700 Subject: [PATCH] draw_bbox_col: draw to software buffer --- src/r_bbox.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/r_bbox.c b/src/r_bbox.c index af444e148..2350d702e 100644 --- a/src/r_bbox.c +++ b/src/r_bbox.c @@ -92,11 +92,10 @@ draw_bbox_col col->y = (centeryfrac - FixedMul(bb->tz, yscale)); col->h = FixedMul(bb->height, yscale); - // Using this function is TOO EASY! - V_DrawFill( - viewwindowx + col->x, - viewwindowy + col->y / FRACUNIT, 1, - col->h / FRACUNIT, V_NOSCALESTART | bb->color); + if (col->x >= 0 && col->x < viewwidth) + { + raster_bbox_seg(col->x, col->y, col->h, bb->color); + } } static void