mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-12-01 07:59:05 +08:00
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:
parent
d364750cb3
commit
b0ace0e850
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user