X-Git-Url: https://git.karo-electronics.de/?p=oswald.git;a=blobdiff_plain;f=ui%2Foswald_graphics.c;h=a6eb14f9dfd50191705b71c4c4d0e3198f4a8e55;hp=36894abeb49a842c8ffb5da326bafe86ef37d6c3;hb=5d0ff002cee35d109f4a60eff415b2db556fb8f4;hpb=dff6532fd5dbbd4a6c2f0fff2c428201b225c529 diff --git a/ui/oswald_graphics.c b/ui/oswald_graphics.c index 36894ab..a6eb14f 100644 --- a/ui/oswald_graphics.c +++ b/ui/oswald_graphics.c @@ -5,7 +5,19 @@ #include "oswald_graphics.h" -void oswald_draw_Line(u8t xstart, u8t ystart, u8t xend, u8t yend) +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; + + // we only draw set pixel, unset pixel remain as they are + for (y=0; y