QP getters correction (#22357)

This commit is contained in:
David Hoelscher 2023-10-29 12:35:38 -05:00 committed by GitHub
parent 98530cad3b
commit c667da0190
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -148,10 +148,11 @@ uint16_t qp_get_width(painter_device_t device) {
case QP_ROTATION_0:
case QP_ROTATION_180:
width = driver->panel_width;
break;
case QP_ROTATION_90:
case QP_ROTATION_270:
width = driver->panel_height;
break;
}
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_180:
height = driver->panel_height;
break;
case QP_ROTATION_90:
case QP_ROTATION_270:
height = driver->panel_width;
break;
}
qp_dprintf("qp_get_height: ok\n");