mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-14 04:54:37 +03:00
fix width of AffinitPanel
The panel size of 15 includes the gap to the next panel, thus use 14 as the minimum size and let the caller of `AffinityPanel_new` handle the gap.
This commit is contained in:
@ -352,7 +352,9 @@ Panel* AffinityPanel_new(ProcessList* pl, Affinity* affinity, int* width) {
|
||||
Panel_init(super, 1, 1, 1, 1, Class(MaskItem), false, FunctionBar_new(AffinityPanelFunctions, AffinityPanelKeys, AffinityPanelEvents));
|
||||
|
||||
this->pl = pl;
|
||||
this->width = 15;
|
||||
/* defaults to 15, this also includes the gap between the panels,
|
||||
* but this will be added by the caller */
|
||||
this->width = 14;
|
||||
|
||||
this->cpuids = Vector_new(Class(MaskItem), true, DEFAULT_SIZE);
|
||||
|
||||
|
Reference in New Issue
Block a user