summaryrefslogtreecommitdiffstats
path: root/htop.c
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2020-11-26 16:15:09 +1100
committerBenBE <BenBE@geshi.org>2020-11-26 23:55:53 +0100
commitfee217551c12754db517d1badd448fc9064a48a8 (patch)
tree85fd6afea51b06c96a9b8c5c45077599d86324cb /htop.c
parent83bf8cfad6a56ff1cd74ddbac61787ba68f14503 (diff)
Drop unneeded parameters to the ScreenManager constructor
All calls to ScreenManager_new always pass the same first five values, the orientation is always HORIZONTAL and the y1 parameter is always the height of the passed-in header struct pointer. I think its safe to assert at this point that no VERTICAL orientation will arrive (if it does, its no harm in re-adding this then) - so we can remove unused conditionals (and TODOs) based on orientation too.
Diffstat (limited to 'htop.c')
-rw-r--r--htop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/htop.c b/htop.c
index 15b58304..2c22b14f 100644
--- a/htop.c
+++ b/htop.c
@@ -326,7 +326,7 @@ int main(int argc, char** argv) {
if (flags.commFilter)
setCommFilter(&state, &(flags.commFilter));
- ScreenManager* scr = ScreenManager_new(0, header->height, 0, -1, HORIZONTAL, header, settings, &state, true);
+ ScreenManager* scr = ScreenManager_new(header, settings, &state, true);
ScreenManager_add(scr, (Panel*) panel, -1);
ProcessList_scan(pl, false);

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