From d01f8880648643d4e12d2b99cc7e5b9883fabda6 Mon Sep 17 00:00:00 2001 From: David Hoelscher Date: Sun, 29 Oct 2023 02:55:51 -0500 Subject: [PATCH 1/2] fixed missing breaks in case statement --- quantum/painter/qp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quantum/painter/qp.c b/quantum/painter/qp.c index dc69789484f9..05c206bc1ab4 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"); From a0e1dff61d83709ec5a8f23645d83136270c825b Mon Sep 17 00:00:00 2001 From: David Hoelscher Date: Sun, 29 Oct 2023 03:35:56 -0500 Subject: [PATCH 2/2] lint correction --- quantum/painter/qp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/quantum/painter/qp.c b/quantum/painter/qp.c index 05c206bc1ab4..375986650938 100644 --- a/quantum/painter/qp.c +++ b/quantum/painter/qp.c @@ -148,11 +148,11 @@ uint16_t qp_get_width(painter_device_t device) { case QP_ROTATION_0: case QP_ROTATION_180: width = driver->panel_width; - break; + break; case QP_ROTATION_90: case QP_ROTATION_270: width = driver->panel_height; - break; + break; } qp_dprintf("qp_get_width: ok\n"); @@ -174,11 +174,11 @@ uint16_t qp_get_height(painter_device_t device) { case QP_ROTATION_0: case QP_ROTATION_180: height = driver->panel_height; - break; + break; case QP_ROTATION_90: case QP_ROTATION_270: height = driver->panel_width; - break; + break; } qp_dprintf("qp_get_height: ok\n");