]> git.karo-electronics.de Git - oswald.git/blobdiff - ui/LcdDisplay.c
Starting to get rid of borrowed code (LcdDisplay, Fonts), integrate
[oswald.git] / ui / LcdDisplay.c
index f4e26c951479ec5052496419d36243d83bb0f40f..ae4aea52b4497d950654593e88b2a5776908b1e9 100644 (file)
@@ -6,21 +6,6 @@
 #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;
-       uint8_t *cb;
-
-       // we only draw set pixel, unset pixel remain as they are
-       for (y=0; y<height; y++) {
-               for (x=0; x<width; x++) {
-                       cb = (uint8_t *)(bmp + (y * ((width / 8)+((width % 8) ? 1:0))) + (x / 8));
-                       if (*cb & (1 << (x % 8)))
-                               hal_lcd_set_pixel(xstart + x, ystart + y, TRUE);
-               }
-       }
-}
-
 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;