mirror of
https://github.com/clangen/musikcube.git
synced 2025-03-20 22:20:56 +00:00
Re-enabled scrollbars on FreeBSD. Seems to be working fine on a fresh install.
This commit is contained in:
parent
e01581495b
commit
69fe527153
@ -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) {
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user