mailarchive of the pengutronix oss-tools mailing list
 help / color / mirror / Atom feed
* [OSS-Tools] [PATCH platsch 1/5] avoid unnecessary indirections
@ 2023-06-21 14:17 Ulrich Ölmann
  2023-06-21 14:17 ` [OSS-Tools] [PATCH platsch 2/5] use pointers to immutable strings for cmdline options Ulrich Ölmann
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ulrich Ölmann @ 2023-06-21 14:17 UTC (permalink / raw)
  To: oss-tools

Signed-off-by: Ulrich Ölmann <u.oelmann@pengutronix.de>
---
 platsch.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/platsch.c b/platsch.c
index dfa42dc9d544..c75f934935f2 100644
--- a/platsch.c
+++ b/platsch.c
@@ -398,9 +398,9 @@ static int set_env_connector_mode(drmModeConnector *conn,
 	for (i = 0; i < conn->count_modes; i++) {
 		drmModeModeInfo mode = conn->modes[i];
 		if (mode.hdisplay == width && mode.vdisplay == height) {
-			memcpy(&dev->mode, &conn->modes[i], sizeof(dev->mode));
-			dev->width = conn->modes[i].hdisplay;
-			dev->height = conn->modes[i].vdisplay;
+			memcpy(&dev->mode, &mode, sizeof(dev->mode));
+			dev->width = width;
+			dev->height = height;
 			break;
 		}
 	}
-- 
2.39.2




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-21 14:18 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21 14:17 [OSS-Tools] [PATCH platsch 1/5] avoid unnecessary indirections Ulrich Ölmann
2023-06-21 14:17 ` [OSS-Tools] [PATCH platsch 2/5] use pointers to immutable strings for cmdline options Ulrich Ölmann
2023-06-21 14:17 ` [OSS-Tools] [PATCH platsch 3/5] allow directory/basename selection via environment Ulrich Ölmann
2023-06-21 14:17 ` [OSS-Tools] [PATCH platsch 4/5] README.rst: fix typos Ulrich Ölmann
2023-06-21 14:17 ` [OSS-Tools] [PATCH platsch 5/5] README.rst: fix documented purpose of commandline arguments Ulrich Ölmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox