Support up to B_MAX_CPU_COUNT distinct colors.
This fix #6541. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38531 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -875,12 +875,16 @@ CPUUsageDataSource::_SetCPU(int32 cpu)
|
|||||||
fShortLabel = fLabel;
|
fShortLabel = fLabel;
|
||||||
fLabel << " usage";
|
fLabel << " usage";
|
||||||
|
|
||||||
const rgb_color kColors[] = {
|
const rgb_color kColors[B_MAX_CPU_COUNT] = {
|
||||||
// TODO: find some better defaults...
|
// TODO: find some better defaults...
|
||||||
{200, 0, 200},
|
{200, 0, 200},
|
||||||
{0, 200, 200},
|
{0, 200, 200},
|
||||||
{80, 80, 80},
|
{80, 80, 80},
|
||||||
{230, 150, 50},
|
{230, 150, 50},
|
||||||
|
{255, 0, 0},
|
||||||
|
{0, 255, 0},
|
||||||
|
{0, 0, 255},
|
||||||
|
{0, 150, 230}
|
||||||
};
|
};
|
||||||
const uint32 kNumColors = sizeof(kColors) / sizeof(kColors[0]);
|
const uint32 kNumColors = sizeof(kColors) / sizeof(kColors[0]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user