static void fb_helper_putcode(struct fb_t * fb, u32_t code, struct color_t * fc, struct color_t * bc, u32_t x, u32_t y) { struct texture_t * face = lookup_console_font_face(fb->alone, code, fc, bc); if(face) fb_helper_blit(fb, face, x, y, face->width, face->height, 0, 0); render_free_texture(fb->alone, face); }
bool_t fb_putcode(struct fb * fb, u32_t code, u32_t fc, u32_t bc, u32_t x, u32_t y) { struct surface_t * face; bool_t ret; face = surface_alloc_from_gimage(lookup_console_font_face(code, fc, bc)); if(!face) return FALSE; ret = fb_blit(fb, face, x, y, face->w, face->h, 0, 0); surface_free(face); return ret; }