Improved code alignment
This commit is contained in:
parent
6ef36ac7f7
commit
6be608ba57
|
@ -1,6 +1,8 @@
|
|||
2017-11-26 Markus Gans <guru.mail@muenster.de>
|
||||
* Better code readability by splitting FOptiMove::moveCursor
|
||||
into sub-functions
|
||||
* Improved alignment of the code by changing the indentation
|
||||
in Boolean expressions
|
||||
|
||||
2017-11-25 Markus Gans <guru.mail@muenster.de>
|
||||
* Splitting quirks in serperate methods
|
||||
|
|
|
@ -518,6 +518,7 @@ void FLabel::printLine ( wchar_t*& line
|
|||
line[z] = L' ';
|
||||
}
|
||||
}
|
||||
|
||||
if ( (z == hotkeypos) && isActive )
|
||||
{
|
||||
setColor (wc.label_hotkey_fg, wc.label_hotkey_bg);
|
||||
|
|
|
@ -1164,7 +1164,8 @@ void FListView::onTimer (FTimerEvent*)
|
|||
|
||||
vbar->setValue (first_visible_line.getPosition());
|
||||
|
||||
if ( vbar->isVisible() && first_line_position_before != first_visible_line.getPosition() )
|
||||
if ( vbar->isVisible()
|
||||
&& first_line_position_before != first_visible_line.getPosition() )
|
||||
vbar->drawBar();
|
||||
|
||||
updateTerminal();
|
||||
|
|
|
@ -219,8 +219,7 @@ void FProgressbar::drawBar()
|
|||
|
||||
if ( percentage > 0.0f && trunc(length) < bar_length )
|
||||
{
|
||||
if ( round(length) > trunc(length)
|
||||
|| getMaxColor() < 16 )
|
||||
if ( round(length) > trunc(length) || getMaxColor() < 16 )
|
||||
{
|
||||
if ( isMonochron() )
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue