mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
QP getters correction (#22357)
This commit is contained in:
parent
98530cad3b
commit
c667da0190
|
@ -148,10 +148,11 @@ uint16_t qp_get_width(painter_device_t device) {
|
||||||
case QP_ROTATION_0:
|
case QP_ROTATION_0:
|
||||||
case QP_ROTATION_180:
|
case QP_ROTATION_180:
|
||||||
width = driver->panel_width;
|
width = driver->panel_width;
|
||||||
|
break;
|
||||||
case QP_ROTATION_90:
|
case QP_ROTATION_90:
|
||||||
case QP_ROTATION_270:
|
case QP_ROTATION_270:
|
||||||
width = driver->panel_height;
|
width = driver->panel_height;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
qp_dprintf("qp_get_width: ok\n");
|
qp_dprintf("qp_get_width: ok\n");
|
||||||
|
@ -173,10 +174,11 @@ uint16_t qp_get_height(painter_device_t device) {
|
||||||
case QP_ROTATION_0:
|
case QP_ROTATION_0:
|
||||||
case QP_ROTATION_180:
|
case QP_ROTATION_180:
|
||||||
height = driver->panel_height;
|
height = driver->panel_height;
|
||||||
|
break;
|
||||||
case QP_ROTATION_90:
|
case QP_ROTATION_90:
|
||||||
case QP_ROTATION_270:
|
case QP_ROTATION_270:
|
||||||
height = driver->panel_width;
|
height = driver->panel_width;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
qp_dprintf("qp_get_height: ok\n");
|
qp_dprintf("qp_get_height: ok\n");
|
||||||
|
|
Loading…
Reference in a new issue