diff options
author | Daniel Flanagan <daniel@lytedev.io> | 2019-10-31 10:31:38 -0500 |
---|---|---|
committer | Daniel Flanagan <daniel@lytedev.io> | 2019-10-31 10:31:38 -0500 |
commit | 28840683cfc5d48307b9b0f382f55f8c84d6a0c4 (patch) | |
tree | 84b70784cb415dfdf3fe891f6545b8994920781a /ScreenManager.c | |
parent | 724aae60d14c1721518c768a48e1e46e3391bb4e (diff) | |
parent | 402e46bb82964366746b86d77eb5afa69c279539 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'ScreenManager.c')
-rw-r--r-- | ScreenManager.c | 8 |
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); } } } |