Skip to content

Commit

Permalink
QP getters correction (#22357)
Browse files Browse the repository at this point in the history
  • Loading branch information
infinityis authored Oct 29, 2023
1 parent 98530ca commit c667da0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions quantum/painter/qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand All @@ -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");
Expand Down

0 comments on commit c667da0

Please sign in to comment.