Renamed palette_colorIdx -> palette_colorToIdx

This commit is contained in:
rxi
2016-09-26 20:14:17 +01:00
parent 9ef23e88d7
commit eee7fccb82
4 changed files with 4 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ static int getColorFromArgs(lua_State *L, int *rgb, const int *def) {
g = luaL_checkint(L, 2);
b = luaL_checkint(L, 3);
}
int idx = palette_colorIdx(r, g, b);
int idx = palette_colorToIdx(r, g, b);
if (idx < 0) {
luaL_error(L, "color palette exhausted: use fewer unique colors");
}