pass font to canvas.print(...)
This commit is contained in:
parent
58f3d1f02b
commit
3f3c40a9b1
2 changed files with 19 additions and 14 deletions
|
|
@ -3,3 +3,18 @@
|
|||
//
|
||||
|
||||
#include "gfx/canvas.h"
|
||||
|
||||
canvas::canvas(int w, int h) : width_(w), height_(h) {
|
||||
}
|
||||
|
||||
void canvas::draw(int x, int y) {
|
||||
hal_draw(x, y);
|
||||
}
|
||||
|
||||
void canvas::print(int x, int y, const char *str, font& f) {
|
||||
f.print(x, y, str, *this);
|
||||
}
|
||||
|
||||
void canvas::print(int x, int y, char *str, font& f) {
|
||||
f.print(x, y, str, *this);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue