forked from drath/libratbag
tools: resolutions with dpi 0 are disabled, print it as that
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -330,9 +330,12 @@ ratbag_cmd_info(struct ratbag *ratbag, uint32_t flags, int argc, char **argv)
|
||||
res = ratbag_profile_get_resolution(profile, j);
|
||||
dpi = ratbag_resolution_get_dpi(res);
|
||||
rate = ratbag_resolution_get_report_rate(res);
|
||||
printf(" %d: %ddpi @ %dHz%s%s\n", j, dpi, rate,
|
||||
ratbag_resolution_is_active(res) ? " (active)" : "",
|
||||
ratbag_resolution_is_default(res) ? " (default)" : "");
|
||||
if (dpi == 0)
|
||||
printf(" %d: <disabled>\n", j);
|
||||
else
|
||||
printf(" %d: %ddpi @ %dHz%s%s\n", j, dpi, rate,
|
||||
ratbag_resolution_is_active(res) ? " (active)" : "",
|
||||
ratbag_resolution_is_default(res) ? " (default)" : "");
|
||||
|
||||
ratbag_resolution_unref(res);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user