From 9fb2c6412db86663e0579b692dc2cc890bb47381 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 2 Jan 2022 13:38:01 -0800 Subject: [PATCH] Add transparent background support to PDCURSES_WINCON build. --- src/musikcube/app/layout/SettingsLayout.cpp | 2 +- src/musikcube/cursespp/Colors.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/musikcube/app/layout/SettingsLayout.cpp b/src/musikcube/app/layout/SettingsLayout.cpp index 144c0cbf8..99f4aab65 100755 --- a/src/musikcube/app/layout/SettingsLayout.cpp +++ b/src/musikcube/app/layout/SettingsLayout.cpp @@ -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 diff --git a/src/musikcube/cursespp/Colors.cpp b/src/musikcube/cursespp/Colors.cpp index 46fe89f20..730e3c8d2 100755 --- a/src/musikcube/cursespp/Colors.cpp +++ b/src/musikcube/cursespp/Colors.cpp @@ -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);