From 0ae7d900214a460f48dd232dfe1426b71980aac9 Mon Sep 17 00:00:00 2001 From: pvictress <185700473+pvictress@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:56:15 +0300 Subject: [PATCH] Fix build, add missing changes --- src/i_truecolor.c | 13 +------------ src/i_truecolor.h | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/i_truecolor.c b/src/i_truecolor.c index 7c100340..b5cd1b6e 100644 --- a/src/i_truecolor.c +++ b/src/i_truecolor.c @@ -29,21 +29,10 @@ -typedef union -{ - uint32_t i; - struct { - uint8_t b; - uint8_t g; - uint8_t r; - uint8_t a; - }; -} tcpixel_t; - // [JN] Double pointer used for additive blending. // It does not store actual color data but serves as a shortcut // to avoid using MIN during rendering. -static uint8_t **additive_lut = NULL; +uint8_t **additive_lut = NULL; void I_InitTCTransMaps (void) { diff --git a/src/i_truecolor.h b/src/i_truecolor.h index a0cb7fc1..089186e7 100644 --- a/src/i_truecolor.h +++ b/src/i_truecolor.h @@ -27,6 +27,19 @@ #include +typedef union +{ + uint32_t i; + struct { + uint8_t b; + uint8_t g; + uint8_t r; + uint8_t a; + }; +} tcpixel_t; + +extern uint8_t **additive_lut; + extern void I_InitTCTransMaps (void); extern const int I_ShadeFactor[]; @@ -39,7 +52,8 @@ extern const double colorblind_matrix[][3][3]; // Doom: #define TRANMAP_ALPHA 0xA8 // 168 (66% opacity) -#define FUZZMAP_ALPHA 0x40 // 64 (25% opacity) +#define FUZZ_ALPHA 0xD3 // 211 (17% darkening) +#define FUZZTL_ALPHA 0x40 // 64 (25% opacity) // Heretic and Hexen: #define TINTTAB_ALPHA 0x60 // 96 (38% opacity)