-#if 0
-/*inline*/ void oswald_draw_bitmap(const unsigned int xstart, const unsigned int ystart, const unsigned int width, const unsigned int height, const void *bmp)
-{
- unsigned int 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);
- }
- }
-}
-#else
-void oswald_draw_bitmap(const unsigned int xstart, const unsigned int ystart, const unsigned int width, const unsigned int height, const void *bmp)
-{
- // seems we are triggering a MSPGCC compiler bug here...
- // if we do not do this trick then bmp becomes 0x00 when passed a livel higher!
- volatile unsigned int num;
-
- num = (unsigned int) bmp;
-
- oswald_draw_bitmap_opts(xstart, ystart, 0, 0, width, height, width, height, bmp);
-}
-
-void oswald_draw_bitmap_size(const unsigned int xstart, const unsigned int ystart, const unsigned int width, const unsigned int height, const unsigned int bmp_width, const unsigned int bmp_height, const void *bmp)
-{
- // seems we are triggering a MSPGCC compiler bug here...
- // if we do not do this trick then bmp becomes 0x00 when passed a livel higher!
- volatile unsigned int num;
-
- num = (unsigned int) bmp;
-
- oswald_draw_bitmap_opts(xstart, ystart, 0, 0, width, height, bmp_width, bmp_height, bmp);
-}
-#endif
-