forked from drath/libratbag
hidpp10: fix last entry in dpi_list_from_range
This commit is contained in:
committed by
Peter Hutterer
parent
f69b4d53f6
commit
3af0544421
@@ -448,7 +448,7 @@ hidpp10drv_read_profile(struct ratbag_profile *profile)
|
||||
* same steps that we support */
|
||||
ratbag_resolution_set_dpi_list_from_range(res, min, max);
|
||||
} else {
|
||||
for (int i = 0; i < hidpp10->dpi_count - 1; i++)
|
||||
for (int i = 0; i < hidpp10->dpi_count; i++)
|
||||
dpis[i] = hidpp10->dpi_table[i].dpi;
|
||||
|
||||
ratbag_resolution_set_dpi_list(res, dpis, hidpp10->dpi_count);
|
||||
|
||||
Reference in New Issue
Block a user