ScrollView: Optimize local table_colors

It is constant, and the values are in the range 0...255,
so its size can be reduced.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2018-10-20 12:05:38 +02:00
parent d364750cb3
commit b0ace0e850

View File

@ -184,7 +184,7 @@ void* ScrollView::MessageReceiver(void* a) {
}
// Table to implement the color index values in the old system.
int table_colors[ScrollView::GREEN_YELLOW+1][4]= {
static const uint8_t table_colors[ScrollView::GREEN_YELLOW+1][4]= {
{0, 0, 0, 0}, // NONE (transparent)
{0, 0, 0, 255}, // BLACK.
{255, 255, 255, 255}, // WHITE.