Example #1
0
void window_draw_bitmap(struct window *w, int x, int y, int width, int height, uint8_t * data,
        struct graphics_color fgcolor,
        struct graphics_color bgcolor) {
    graphics_bitmap(x + w->x, y + w->y, width, height, data, fgcolor, bgcolor);
}
Example #2
0
void graphics_char( struct graphics *g, int32_t x, int32_t y, char c )
{
	uint32_t u = ((uint32_t)c)*FONT_WIDTH*FONT_HEIGHT/8;
	return graphics_bitmap(g,x,y,FONT_WIDTH,FONT_HEIGHT,&fontdata[u]);
}