Improved code alignment

This commit is contained in:
Markus Gans 2017-11-26 22:37:18 +01:00
parent 6ef36ac7f7
commit 6be608ba57
31 changed files with 444 additions and 441 deletions

View File

@ -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

View File

@ -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);

View File

@ -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();

View File

@ -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() )
{