void tvrx_init(struct ite_data *ip) { int width; ip->bmv = ite_dio_windowmove1bpp; ite_fontinfo(ip); width = ((ip->ftwidth + 7) / 8) * 8; ip->cpl = (ip->fbwidth - ip->dwidth) / width; ip->cblanky = ip->fonty + ((128 / ip->cpl) +1) * ip->ftheight; /* * Clear the framebuffer on all planes. */ ite_dio_windowmove1bpp(ip, 0, 0, 0, 0, ip->fbheight, ip->fbwidth, RR_CLEAR); ite_fontinit1bpp(ip); /* * Stash the inverted cursor. */ ite_dio_windowmove1bpp(ip, charY(ip, ' '), charX1bpp(ip, ' '), ip->cblanky, ip->cblankx, ip->ftheight, ip->ftwidth, RR_COPYINVERTED); }
void ite_dio_putc1bpp(struct ite_data *ip, int c, int dy, int dx) { ite_dio_windowmove1bpp(ip, charY(ip, c), charX1bpp(ip, c), dy * ip->ftheight, dx * ip->ftwidth, ip->ftheight, ip->ftwidth, RR_COPY); }