aboutsummaryrefslogtreecommitdiff
path: root/hw/display
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-02-15 10:32:13 +0000
committerPeter Maydell <peter.maydell@linaro.org>2021-03-06 13:30:38 +0000
commit0c6d9ff0afa3500af875d64382c2a6ca9d7934a0 (patch)
treeb1280edcd5431c32d27284dbe35e197ede02b8e0 /hw/display
parent78b40bfb8fee5bb8ecff176522ad8098476cab5d (diff)
downloadqemu-0c6d9ff0afa3500af875d64382c2a6ca9d7934a0.zip
qemu-0c6d9ff0afa3500af875d64382c2a6ca9d7934a0.tar.gz
qemu-0c6d9ff0afa3500af875d64382c2a6ca9d7934a0.tar.bz2
hw/display/omap_lcdc: Fix coding style issues in template header
Fix some minor coding style issues in the template header, so checkpatch doesn't complain when we move the code. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 20210215103215.4944-8-peter.maydell@linaro.org
Diffstat (limited to 'hw/display')
-rw-r--r--hw/display/omap_lcd_template.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/display/omap_lcd_template.h b/hw/display/omap_lcd_template.h
index 22e51d9..a2f86ee 100644
--- a/hw/display/omap_lcd_template.h
+++ b/hw/display/omap_lcd_template.h
@@ -61,7 +61,7 @@ static void draw_line2_32(void *opaque, uint8_t *d, const uint8_t *s,
b = (pal[v & 3] << 4) & 0xf0;
((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b);
d += 4;
- s ++;
+ s++;
width -= 4;
} while (width > 0);
}
@@ -88,7 +88,7 @@ static void draw_line4_32(void *opaque, uint8_t *d, const uint8_t *s,
b = (pal[v & 0xf] << 4) & 0xf0;
((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b);
d += 4;
- s ++;
+ s++;
width -= 2;
} while (width > 0);
}
@@ -108,7 +108,7 @@ static void draw_line8_32(void *opaque, uint8_t *d, const uint8_t *s,
g = pal[v] & 0xf0;
b = (pal[v] << 4) & 0xf0;
((uint32_t *) d)[0] = rgb_to_pixel32(r, g, b);
- s ++;
+ s++;
d += 4;
} while (-- width != 0);
}