Re-enabled scrollbars on FreeBSD. Seems to be working fine on a fresh install.

This commit is contained in:
casey langen 2018-12-23 13:31:54 +00:00
parent e01581495b
commit 69fe527153
2 changed files with 0 additions and 6 deletions

View File

@ -157,12 +157,8 @@ void ListOverlay::Layout() {
}
bool ListOverlay::ScrollbarVisible() {
#ifndef __FreeBSD__
auto contentHeight = this->height - 4; /* top and bottom padding + title */
return (int) this->listWindow->EntryCount() > contentHeight;
#else
return false;
#endif
}
ListOverlay& ListOverlay::SetTitle(const std::string& title) {

View File

@ -39,7 +39,6 @@
using namespace cursespp;
void Scrollbar::Draw(ListWindow* list, Window* target) {
#ifndef __FreeBSD__
int height = list->GetHeight();
auto *adapter = &list->GetScrollAdapter();
if (adapter && height > 2) {
@ -84,5 +83,4 @@ void Scrollbar::Draw(ListWindow* list, Window* target) {
if (i == yOffset) wattroff(frame, A_REVERSE);
}
}
#endif
}