From 16b0dfb78f119bd33083bb0755847fa0df2a0d03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Mon, 6 Oct 2025 16:58:59 +0200 Subject: [PATCH] xwayland: Use separate comment for each xwl_output_fake_modes line Preparation for next commit. --- hw/xwayland/xwayland-output.c | 79 +++++++++++++++++------------------ 1 file changed, 38 insertions(+), 41 deletions(-) diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index 715eff3ea..e1f0fca33 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -299,49 +299,46 @@ xwl_output_remove_emulated_mode_for_client(struct xwl_output *xwl_output, /* From hw/xfree86/common/xf86DefModeSet.c with some obscure modes dropped */ const int32_t xwl_output_fake_modes[][2] = { - /* 4:3 (1.33) */ - { 2048, 1536 }, - { 1920, 1440 }, - { 1600, 1200 }, - { 1440, 1080 }, - { 1400, 1050 }, + { 2048, 1536 }, /* 4:3 (1.33) */ + { 1920, 1440 }, /* 4:3 (1.33) */ + { 1600, 1200 }, /* 4:3 (1.33) */ + { 1440, 1080 }, /* 4:3 (1.33) */ + { 1400, 1050 }, /* 4:3 (1.33) */ { 1280, 1024 }, /* 5:4 (1.25) */ - { 1280, 960 }, - { 1152, 864 }, - { 1024, 768 }, - { 800, 600 }, - { 640, 480 }, - { 320, 240 }, - /* 16:10 (1.6) */ - { 2560, 1600 }, - { 1920, 1200 }, - { 1680, 1050 }, - { 1440, 900 }, - { 1280, 800 }, - { 1152, 720 }, - { 960, 600 }, - { 928, 580 }, - { 800, 500 }, - { 768, 480 }, + { 1280, 960 }, /* 4:3 (1.33) */ + { 1152, 864 }, /* 4:3 (1.33) */ + { 1024, 768 }, /* 4:3 (1.33) */ + { 800, 600 }, /* 4:3 (1.33) */ + { 640, 480 }, /* 4:3 (1.33) */ + { 320, 240 }, /* 4:3 (1.33) */ + { 2560, 1600 }, /* 16:10 (1.6) */ + { 1920, 1200 }, /* 16:10 (1.6) */ + { 1680, 1050 }, /* 16:10 (1.6) */ + { 1440, 900 }, /* 16:10 (1.6) */ + { 1280, 800 }, /* 16:10 (1.6) */ + { 1152, 720 }, /* 16:10 (1.6) */ + { 960, 600 }, /* 16:10 (1.6) */ + { 928, 580 }, /* 16:10 (1.6) */ + { 800, 500 }, /* 16:10 (1.6) */ + { 768, 480 }, /* 16:10 (1.6) */ { 720, 480 }, /* 3:2 (1.5) */ - { 640, 400 }, - { 320, 200 }, - /* 16:9 (1.77) */ - { 5120, 2880 }, - { 4096, 2304 }, - { 3840, 2160 }, - { 3200, 1800 }, - { 2880, 1620 }, - { 2560, 1440 }, - { 2048, 1152 }, - { 1920, 1080 }, - { 1600, 900 }, - { 1368, 768 }, - { 1280, 720 }, - { 1024, 576 }, - { 864, 486 }, - { 720, 400 }, - { 640, 350 }, + { 640, 400 }, /* 16:10 (1.6) */ + { 320, 200 }, /* 16:10 (1.6) */ + { 5120, 2880 }, /* 16:9 (1.77) */ + { 4096, 2304 }, /* 16:9 (1.77) */ + { 3840, 2160 }, /* 16:9 (1.77) */ + { 3200, 1800 }, /* 16:9 (1.77) */ + { 2880, 1620 }, /* 16:9 (1.77) */ + { 2560, 1440 }, /* 16:9 (1.77) */ + { 2048, 1152 }, /* 16:9 (1.77) */ + { 1920, 1080 }, /* 16:9 (1.77) */ + { 1600, 900 }, /* 16:9 (1.77) */ + { 1368, 768 }, /* 16:9 (1.77) */ + { 1280, 720 }, /* 16:9 (1.77) */ + { 1024, 576 }, /* 16:9 (1.77) */ + { 864, 486 }, /* 16:9 (1.77) */ + { 720, 400 }, /* 16:9 (1.77) */ + { 640, 350 }, /* 16:9 (1.77) */ }; /* Build an array with RRModes the first mode is the actual output mode, the