diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-16 16:23:23 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-16 16:23:23 +0200 |
commit | 0ae720729039b317276c5c8083a5864d8f99a6cb (patch) | |
tree | c307e2295d76cf70e6927db5254f0a0c26ba8bec /framebuffer.c | |
parent | misc + change license + remove info manual (diff) | |
download | crt-calibrator-0ae720729039b317276c5c8083a5864d8f99a6cb.tar.gz crt-calibrator-0ae720729039b317276c5c8083a5864d8f99a6cb.tar.bz2 crt-calibrator-0ae720729039b317276c5c8083a5864d8f99a6cb.tar.xz |
Improve makefile, fix uninstall rule, and fix style erros1.3.3
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'framebuffer.c')
-rw-r--r-- | framebuffer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/framebuffer.c b/framebuffer.c index 29459ac..69e6354 100644 --- a/framebuffer.c +++ b/framebuffer.c @@ -152,7 +152,8 @@ fb_fill_rectangle(framebuffer_t *restrict fb, uint32_t colour, uint32_t x, uint3 * @param y The starting pixel on the Y axis for the line segment * @param length The length of the line segment, in pixels */ -void fb_draw_horizontal_line(framebuffer_t *restrict fb, uint32_t colour, uint32_t x, uint32_t y, uint32_t length) +void +fb_draw_horizontal_line(framebuffer_t *restrict fb, uint32_t colour, uint32_t x, uint32_t y, uint32_t length) { int8_t *mem = fb->mem + y * fb->line_length; size_t x1 = x * fb->bytes_per_pixel; @@ -172,7 +173,8 @@ void fb_draw_horizontal_line(framebuffer_t *restrict fb, uint32_t colour, uint32 * @param y The starting pixel on the Y axis for the line segment * @param length The length of the line segment, in pixels */ -void fb_draw_vertical_line(framebuffer_t *restrict fb, uint32_t colour, uint32_t x, uint32_t y, uint32_t length) +void +fb_draw_vertical_line(framebuffer_t *restrict fb, uint32_t colour, uint32_t x, uint32_t y, uint32_t length) { int8_t *mem = fb->mem + y * fb->line_length + x * fb->bytes_per_pixel; size_t y2 = y + length; |