summaryrefslogtreecommitdiff
path: root/include/palette.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/palette.h')
-rw-r--r--include/palette.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/palette.h b/include/palette.h
index f975ef2..b48d5f3 100644
--- a/include/palette.h
+++ b/include/palette.h
@@ -97,7 +97,6 @@ static inline uint8_t nsfb_palette_best_match(struct nsfb_palette_s *palette,
db = ((c >> 16) & 0xFF) - ((palent >> 16) & 0xFF);
cur_distance = (dr * dr) + (dg * dg) + (db * db);
if (cur_distance < best_distance) {
- best_distance = cur_distance;
best_col = col;
*r_error = dr;
*g_error = dg;