Author: phoudoin Date: 2010-09-05 10:09:00 +0200 (Sun, 05 Sep 2010) New Revision: 38531 Changeset: http://dev.haiku-os.org/changeset/38531 Ticket: http://dev.haiku-os.org/ticket/6541 Modified: haiku/trunk/src/apps/activitymonitor/DataSource.cpp Log: Support up to B_MAX_CPU_COUNT distinct colors. This fix #6541. Modified: haiku/trunk/src/apps/activitymonitor/DataSource.cpp =================================================================== --- haiku/trunk/src/apps/activitymonitor/DataSource.cpp 2010-09-04 22:36:35 UTC (rev 38530) +++ haiku/trunk/src/apps/activitymonitor/DataSource.cpp 2010-09-05 08:09:00 UTC (rev 38531) @@ -875,12 +875,16 @@ fShortLabel = fLabel; fLabel << " usage"; - const rgb_color kColors[] = { + const rgb_color kColors[B_MAX_CPU_COUNT] = { // TODO: find some better defaults... {200, 0, 200}, {0, 200, 200}, {80, 80, 80}, {230, 150, 50}, + {255, 0, 0}, + {0, 255, 0}, + {0, 0, 255}, + {0, 150, 230} }; const uint32 kNumColors = sizeof(kColors) / sizeof(kColors[0]);