|
|
|
@ -28,9 +28,7 @@ using Global::myScreen; |
|
|
|
using Global::myLockedScreen; |
|
|
|
using Global::myLockedScreen; |
|
|
|
using Global::myInactiveScreen; |
|
|
|
using Global::myInactiveScreen; |
|
|
|
|
|
|
|
|
|
|
|
namespace {//
|
|
|
|
void drawSeparator(int x) |
|
|
|
|
|
|
|
|
|
|
|
void drawScreenSeparator(int x) |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
attron(COLOR_PAIR(int(Config.main_color))); |
|
|
|
attron(COLOR_PAIR(int(Config.main_color))); |
|
|
|
mvvline(Global::MainStartY, x, 0, Global::MainHeight); |
|
|
|
mvvline(Global::MainStartY, x, 0, Global::MainHeight); |
|
|
|
@ -38,8 +36,6 @@ void drawScreenSeparator(int x) |
|
|
|
refresh(); |
|
|
|
refresh(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void genericMouseButtonPressed(NC::Window &w, MEVENT me) |
|
|
|
void genericMouseButtonPressed(NC::Window &w, MEVENT me) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (me.bstate & BUTTON2_PRESSED) |
|
|
|
if (me.bstate & BUTTON2_PRESSED) |
|
|
|
@ -94,7 +90,7 @@ void BaseScreen::getWindowResizeParams(size_t &x_offset, size_t &width, bool adj |
|
|
|
{ |
|
|
|
{ |
|
|
|
myLockedScreen->resize(); |
|
|
|
myLockedScreen->resize(); |
|
|
|
myLockedScreen->refresh(); |
|
|
|
myLockedScreen->refresh(); |
|
|
|
drawScreenSeparator(x_offset-1); |
|
|
|
drawSeparator(x_offset-1); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
@ -153,7 +149,7 @@ void updateInactiveScreen(BaseScreen *screen_to_be_set) |
|
|
|
// as in "else" case. we also need to refresh it and redraw separator between
|
|
|
|
// as in "else" case. we also need to refresh it and redraw separator between
|
|
|
|
// them as stacked screen probably has overwritten part ot it.
|
|
|
|
// them as stacked screen probably has overwritten part ot it.
|
|
|
|
myInactiveScreen->refresh(); |
|
|
|
myInactiveScreen->refresh(); |
|
|
|
drawScreenSeparator(COLS*Config.locked_screen_width_part); |
|
|
|
drawSeparator(COLS*Config.locked_screen_width_part); |
|
|
|
} |
|
|
|
} |
|
|
|
else |
|
|
|
else |
|
|
|
{ |
|
|
|
{ |
|
|
|
|