From 801a1405c61ece75199d46a606adb725214f6396 Mon Sep 17 00:00:00 2001 From: casey langen Date: Sun, 1 Mar 2020 18:54:19 -0800 Subject: [PATCH] Work around PDCurses/ncurses differences. --- src/musikcube/cursespp/Window.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/musikcube/cursespp/Window.cpp b/src/musikcube/cursespp/Window.cpp index f46a3b476..f62134efa 100755 --- a/src/musikcube/cursespp/Window.cpp +++ b/src/musikcube/cursespp/Window.cpp @@ -63,9 +63,14 @@ static std::shared_ptr keys; however, something changed internally that causes the drawing to get corrupted if we don't call wbkgdset() first. this looks like a bug, and the release notes mention wbkgd() was changed, but it's unclear what exactly happened... */ -#define wbkgd_internal(window, color) \ - wbkgdset(window, color); \ - wbkgd(window, color); +#ifndef WIN32 + #define wbkgd_internal(window, color) \ + wbkgdset(window, color); \ + wbkgd(window, color); +#else + #define wbkgd_internal(window, color) \ + wbkgd(window, color); +#endif static inline void DrawCursor(IInput* input) { if (input) {