~kiwec/ke

ke/src/Canvas.cc -rw-r--r-- 211 bytes
1cc8481d — Wolf Clément Fix compilation 3 years ago
                                                                                
1
2
3
4
5
6
7
8
9
#include <termbox.h>
#include "Canvas.h"

void Canvas::print(const wchar_t* text, int x, int y, int fg, int bg) {
	for(int i = 0; *text != L'\0'; i++) {
		tb_change_cell(x + i, y, *text, fg, bg);
		text++;
	}
}