sdlterm/src/sdlterm.cc
changeset 54 86b84535726e
parent 53 c4263588b716
child 55 1ab0edd5d784
equal deleted inserted replaced
53:c4263588b716 54:86b84535726e
     2 
     2 
     3 #include <exception>
     3 #include <exception>
     4 #include <algorithm>
     4 #include <algorithm>
     5 
     5 
     6 
     6 
     7 void ColorMap::index_to_rgb(int index, SDL_Color &color)
     7 void ColorMap::index_to_rgb(int index, SDL_Color &color) const
     8 {
     8 {
     9     color.r = _map[index][0];
     9     color.r = _map[index][0];
    10     color.g = _map[index][1];
    10     color.g = _map[index][1];
    11     color.b = _map[index][2];
    11     color.b = _map[index][2];
    12 }
    12 }