From 165729be64c8b2c088022811c38e2a0c026e91d9 Mon Sep 17 00:00:00 2001
From: yellowtd <ren_amon@hotmail.com>
Date: Thu, 22 Sep 2016 00:09:42 -0400
Subject: [PATCH] View Roll (Software): fill in empty space with color index

to remove HOM effect, uncomment line to fill the empty space with the
color black instead
---
 src/v_video.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/v_video.c b/src/v_video.c
index b786d56139..eae30c299e 100644
--- a/src/v_video.c
+++ b/src/v_video.c
@@ -2039,6 +2039,9 @@ Unoptimized version
         float xst = (INT32)round((cosma * -hwidth - sinma * -hheight) + hwidth);
         float yst = (INT32)round((sinma * -hwidth + cosma * -hheight) + hheight);
 
+        // Fills the empty space with a solid color from palette index
+        //memset(screens[4], (UINT8)(31), vid.width*vid.height*vid.bpp);
+
 #define OUT_OF_RANGE (xs < 0 || xs >= vid.width || ys < 0 || ys >= height)
         for (y = 0; y < hheight; y++) {
             float xs = xst;
-- 
GitLab