Skip to content

Fix active resolution slot handling#20

Open
staticssleever668 wants to merge 1 commit intoenkore:latestfrom
staticssleever668:fix_active_dpi_off_by_one
Open

Fix active resolution slot handling#20
staticssleever668 wants to merge 1 commit intoenkore:latestfrom
staticssleever668:fix_active_dpi_off_by_one

Conversation

@staticssleever668
Copy link
Contributor

  • Subtract 1 from read active DPI slot as it is 1-indexed This fixes off by one error in showing active DPI slot.

  • Only count enabled resolution slots when comparing slot indexes.

This is also how it's done in libratbag.

This tackles one of the problems mentioned in #18.

* Subtract 1 from read active DPI slot as it is 1-indexed
This fixes off by one error in showing active DPI slot.

* Only count enabled resolution slots when comparing slot indexes.

This is also how it's done in libratbag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant