summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorDavid Hoelscher <infinityis@users.noreply.github.com>2023-10-29 12:35:38 -0500
committerGitHub <noreply@github.com>2023-10-29 17:35:38 +0000
commitc667da019078442ff0fd9a4ca33ad09b627672f2 (patch)
tree1f652a981fb73758ff7a32001d070e437df028df /quantum
parent98530cad3ba8733d8a100e0bc5f3cf47339c4b3e (diff)
QP getters correction (#22357)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/painter/qp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/quantum/painter/qp.c b/quantum/painter/qp.c
index dc69789484..3759866509 100644
--- a/quantum/painter/qp.c
+++ b/quantum/painter/qp.c
@@ -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");