Add transparent background support to PDCURSES_WINCON build.

This commit is contained in:
casey langen 2022-01-02 13:38:01 -08:00
parent d77bf3c833
commit 9fb2c6412d
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ using namespace cursespp;
#define ENABLE_COLOR_THEME_SELECTION
#ifndef WIN32
#if !defined(WIN32) || defined(PDCURSES_WINCON)
#define ENABLE_UNIX_TERMINAL_OPTIONS
#endif

View File

@ -369,7 +369,7 @@ struct Theme {
/* initializes all of the color pairs from the specified colors, then applies them
to the current session! */
void Apply(Colors::Mode mode, Colors::BgType bgType) {
#ifdef WIN32
#if defined(WIN32) && !defined(PDCURSES_WINCON)
bgType = Colors::Theme;
#endif
bool transparent = (bgType == Colors::BgType::Inherit);