part 1 of preparing support for high-dpi devices

This commit is contained in:
Dominic Radermacher 2019-12-17 21:11:17 +01:00
parent 815aaf1992
commit 9509424d56
3 changed files with 18 additions and 11 deletions

View file

@ -288,11 +288,16 @@ int ptouch_getstatus(ptouch_dev ptdev)
return -1;
}
int ptouch_getmaxwidth(ptouch_dev ptdev)
size_t ptouch_get_tape_width(ptouch_dev ptdev)
{
return ptdev->tape_width_px;
}
size_t ptouch_get_max_width(ptouch_dev ptdev)
{
return ptdev->devinfo->max_px;
}
int ptouch_sendraster(ptouch_dev ptdev, uint8_t *data, size_t len)
{
uint8_t buf[64];