mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Remove slightly better looking Win32 scroll indicators to make things
more compatable.
This commit is contained in:
parent
2e66777ba0
commit
42075e3e7f
@ -36,8 +36,6 @@
|
||||
#include <algorithm>
|
||||
#include "ListWindow.h"
|
||||
|
||||
#define WIN32_SCROLLER 0x258A
|
||||
|
||||
using namespace cursespp;
|
||||
|
||||
typedef IScrollAdapter::ScrollPosition ScrollPos;
|
||||
@ -94,15 +92,9 @@ void ListWindow::DecorateFrame() {
|
||||
|
||||
for (int i = 1; i < height - 1; i++) {
|
||||
wmove(frame, i, this->GetWidth() - 1);
|
||||
#ifdef WIN32
|
||||
waddch(frame, (i == offset) ? WIN32_SCROLLER : ACS_VLINE);
|
||||
#elif defined __APPLE__
|
||||
if (i == offset) wattron(frame, A_REVERSE);
|
||||
waddch(frame, (i == offset) ? ' ' : ACS_VLINE);
|
||||
if (i == offset) wattroff(frame, A_REVERSE);
|
||||
#else
|
||||
wadd_wch(frame, (i == offset) ? WACS_D_VLINE : WACS_VLINE);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user