X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=ui%2FLcdDisplay.c;h=f4e26c951479ec5052496419d36243d83bb0f40f;hp=725908a4ab999860fbe6cb865b69ad6bfab5baa1;hb=ad140c1dc1090e2a99ff7a362713436e0ae51c7d;hpb=b83e605bc8ba69950a84b6ed268f0c196f68762c diff --git a/ui/LcdDisplay.c b/ui/LcdDisplay.c index 725908a..f4e26c9 100644 --- a/ui/LcdDisplay.c +++ b/ui/LcdDisplay.c @@ -5,6 +5,7 @@ #include "LcdDisplay.h" + void oswald_draw_bitmap(const uint8_t xstart, const uint8_t ystart, const uint8_t width, const uint8_t height, const void *bmp) { uint8_t x, y; @@ -20,7 +21,7 @@ void oswald_draw_bitmap(const uint8_t xstart, const uint8_t ystart, const uint8_ } } -void DrawLcdLineBresenham(u8t xstart, u8t ystart, u8t xend, u8t yend) +void DrawLcdLineBresenham(const uint8_t xstart, const uint8_t ystart, const uint8_t xend, const uint8_t yend) { int x, y, t, dx, dy, incx, incy, pdx, pdy, ddx, ddy, es, el, err; @@ -65,7 +66,7 @@ void DrawLcdLineBresenham(u8t xstart, u8t ystart, u8t xend, u8t yend) // lcd_update_display(); } -void DrawLcdLineBresenhamWW(u8t xstart, u8t ystart, u8t xend, u8t yend, u8t thickness) +void DrawLcdLineBresenhamWW(const uint8_t xstart, const uint8_t ystart, const uint8_t xend, const uint8_t yend, const uint8_t thickness) { int i, x, y, t, dx, dy, incx, incy, pdx, pdy, ddx, ddy, es, el, err; @@ -122,7 +123,7 @@ void DrawLcdLineBresenhamWW(u8t xstart, u8t ystart, u8t xend, u8t yend, u8t thic // lcd_update_display(); } -u8t WriteLcdCharacter(u8t x, u8t y, u8t Character) +u8t WriteLcdCharacter(const uint8_t x, const uint8_t y, const uint8_t Character) { u8t CharacterHeight = GetCharacterHeight(); u8t CharacterWidth = GetCharacterWidth(Character); @@ -137,10 +138,10 @@ u8t WriteLcdCharacter(u8t x, u8t y, u8t Character) if (bitmap[ly] & (1<