From 6eec629cfd166061b2ac9205e7be7c2e36c5e329 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Wed, 18 Dec 2019 09:30:59 +0000 Subject: [PATCH] Expose blackcol variable, containing the palette index closest to #000000 Backported from PCExhumed. git-svn-id: https://svn.eduke32.com/eduke32@8433 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/build/include/build.h | 2 +- source/build/src/palette.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/build/include/build.h b/source/build/include/build.h index 30acb47cc..28f1e5db1 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -510,7 +510,7 @@ EXTERN char *palookup[MAXPALOOKUPS]; extern uint8_t *basepaltable[MAXBASEPALS]; EXTERN uint8_t paletteloaded; EXTERN char *blendtable[MAXBLENDTABS]; -EXTERN uint8_t whitecol, redcol; +EXTERN uint8_t whitecol, redcol, blackcol; EXTERN int32_t maxspritesonscreen; diff --git a/source/build/src/palette.cpp b/source/build/src/palette.cpp index 857e80ff1..d91079a59 100644 --- a/source/build/src/palette.cpp +++ b/source/build/src/palette.cpp @@ -28,7 +28,6 @@ palette_t curpalette[256]; // the current palette, unadjusted for brightness o palette_t curpalettefaded[256]; // the current palette, adjusted for brightness and tint (ie. what gets sent to the card) palette_t palfadergb = { 0, 0, 0, 0 }; char palfadedelta = 0; -uint8_t blackcol; int32_t realmaxshade; float frealmaxshade;