pointer: show default pointer on empty shape report

This commit is contained in:
Christian Helmuth
2018-05-09 15:46:40 +02:00
parent 0f7de9268d
commit cb3556877d
3 changed files with 42 additions and 38 deletions

View File

@ -260,7 +260,8 @@ void Pointer::Main::_update_pointer()
shape_module.read_content(*this, (char*)&shape_report, sizeof(shape_report));
if (shape_report.visible &&
/* show default pointer on invisible/empty/invalid shape report */
if (!shape_report.visible ||
((shape_report.width == 0) ||
(shape_report.height == 0) ||
(shape_report.width > MAX_WIDTH) ||