From aa59abd031b99c09dd4b8c5a40274e094ba1cbe4 Mon Sep 17 00:00:00 2001 From: Casey Langen Date: Sun, 17 Jan 2021 23:59:01 -0800 Subject: [PATCH] Conditionalize weird redraw issue observed on FreeBSD. --- src/musikcube/cursespp/Window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/musikcube/cursespp/Window.cpp b/src/musikcube/cursespp/Window.cpp index f5e5f2f8b..fd87d9e7b 100755 --- a/src/musikcube/cursespp/Window.cpp +++ b/src/musikcube/cursespp/Window.cpp @@ -419,7 +419,13 @@ void Window::Redraw() { } if (this->frame) { +#ifdef __FreeBSD__ + /* somehow related to curses version, but i don't know how; + if we don't do this on FreeBSD we get missing background + colors for things like overlays. if we do this on other + platforms we get weird repainting artifacts. */ this->RepaintBackground(); +#endif this->OnRedraw(); this->Invalidate(); this->isDirty = false;