Commit 63e1417b authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Update some field accesses to new structures

parent 9b4bdfcb
......@@ -280,7 +280,7 @@ static Htop_Reaction actionExpandOrCollapse(State* st) {
}
static Htop_Reaction actionCollapseIntoParent(State* st) {
if (!st->settings->treeView) {
if (!st->settings->ss->treeView) {
return HTOP_OK;
}
bool changed = collapseIntoParent(st->panel);
......
......@@ -205,7 +205,7 @@ int main(int argc, char** argv) {
if (!flags.useColors)
settings->colorScheme = COLORSCHEME_MONOCHROME;
if (flags.treeView)
settings->treeView = true;
settings->screens[0]->treeView = true;
CRT_init(settings->delay, settings->colorScheme);
......
......@@ -186,7 +186,7 @@ typedef struct LinuxProcess_ {
} LinuxProcess;
#ifndef Process_isKernelThread
#define Process_isKernelThread(_process) ((LinuxProcess*)(_process)->isKernelThread)
#define Process_isKernelThread(_process) (((LinuxProcess*)(_process))->isKernelThread)
#endif
#ifndef Process_isUserlandThread
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment