summaryrefslogtreecommitdiffstats
path: root/ScreenManager.c
diff options
context:
space:
mode:
authorDaniel Flanagan <daniel@lytedev.io>2019-10-31 10:31:38 -0500
committerDaniel Flanagan <daniel@lytedev.io>2019-10-31 10:31:38 -0500
commit28840683cfc5d48307b9b0f382f55f8c84d6a0c4 (patch)
tree84b70784cb415dfdf3fe891f6545b8994920781a /ScreenManager.c
parent724aae60d14c1721518c768a48e1e46e3391bb4e (diff)
parent402e46bb82964366746b86d77eb5afa69c279539 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ScreenManager.c')
-rw-r--r--ScreenManager.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ScreenManager.c b/ScreenManager.c
index 05e1c024..06e90193 100644
--- a/ScreenManager.c
+++ b/ScreenManager.c
@@ -145,14 +145,12 @@ static void checkRecalculation(ScreenManager* this, double* oldTime, int* sortTi
}
static void ScreenManager_drawPanels(ScreenManager* this, int focus) {
- int nPanels = this->panelCount;
+ const int nPanels = this->panelCount;
for (int i = 0; i < nPanels; i++) {
Panel* panel = (Panel*) Vector_get(this->panels, i);
Panel_draw(panel, i == focus);
- if (i < nPanels) {
- if (this->orientation == HORIZONTAL) {
- mvvline(panel->y, panel->x+panel->w, ' ', panel->h+1);
- }
+ if (this->orientation == HORIZONTAL) {
+ mvvline(panel->y, panel->x+panel->w, ' ', panel->h+1);
}
}
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy