From 58488ab8e98f808e231579b75bc27753d6444e1e Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sun, 5 Aug 2018 16:00:53 -0700 Subject: [PATCH] Remove a conditional codepath in LORES40 drawing --- src/display.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/display.c b/src/display.c index cb2b6442..e2bc9db2 100644 --- a/src/display.c +++ b/src/display.c @@ -651,10 +651,8 @@ static void _plot_lores40_scanline(scan_data_t *scandata) { uint32_t val32; if (color_mode == COLOR_NONE) { - if (val != 0x0 && val != 0xf) { - uint8_t rot2 = ((col % 2) << 1); // 2 phases at double rotation - val = (val << rot2) | ((val & 0xC0) >> rot2); - } + uint8_t rot2 = ((col % 2) << 1); // 2 phases at double rotation + val = (val << rot2) | ((val & 0xC0) >> rot2); val32 = ((val & 0x10) ? COLOR_LIGHT_WHITE : COLOR_BLACK) << 0; val32 |= ((val & 0x20) ? COLOR_LIGHT_WHITE : COLOR_BLACK) << 8; val32 |= ((val & 0x40) ? COLOR_LIGHT_WHITE : COLOR_BLACK) << 16;