Subversion Repositories freemyipod

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
881 theseven 1
#include "global.h"
2
#include "interface/textrenderer/textrenderer.h"
3
#include "sys/util.h"
4
 
5
void textrenderer_init(const struct textrenderer_instance* instance)
6
{
7
    instance->driver->init(instance);
8
}
9
 
10
int textrenderer_get_line_height(const struct textrenderer_instance* instance)
11
{
12
    return instance->driver->get_line_height(instance);
13
}
14
 
15
int textrenderer_get_max_width(const struct textrenderer_instance* instance)
16
{
17
    return instance->driver->get_max_width(instance);
18
}
19
 
20
int textrenderer_render_char(const struct textrenderer_instance* instance,
21
                             const struct framebuffer_instance* fb, int x, int y, uint32_t color, char c)
22
{
23
    return instance->driver->render_char(instance, fb, x, y, color, c);
24
}