mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
[PR #245] [MERGED] Fix non-standard volume/brightness scales not working properly #1076
Labels
No labels
Status: Abandoned
arm64
beta
beta
bug
done
duplicate
enhancement
feedback needed from reporter
in progress
invalid
investigating
known Issue
monitor Issue
pull-request
translation
unable to reproduce
unreleased
x86
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/MonitorControl#1076
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MonitorControl/MonitorControl/pull/245
Author: @victorchabbert
Created: 6/22/2020
Status: ✅ Merged
Merged: 9/20/2020
Merged by: @JoniVR
Base:
master← Head:master📝 Commits (1)
6f3196aRefactor calcNewValue📊 Changes
6 files changed (+78 additions, -30 deletions)
View changed files
📝
MonitorControl.xcodeproj/project.pbxproj(+4 -0)📝
MonitorControl/Info.plist(+1 -1)📝
MonitorControl/Model/Display.swift(+22 -8)📝
MonitorControl/Model/ExternalDisplay.swift(+25 -20)➕
MonitorControl/Support/OSDUtils.swift(+25 -0)📝
MonitorControlHelper/Info.plist(+1 -1)📄 Description
Previously, calcNewValue assumed your display's maxValue was a 100.
This caused the OSD to block after certain values (see #201).
It also tried to find the "prettiest" monitor value to display during
normal increments.
This PR refactors the calcNewValue function to focus on finding the next value based on the monitor's value scale.
Behaviour:
from the monitor value
a set threshold, we jump to the next chiclet skipping the nearest.
Otherwise, we go to the nearest chiclet.
calcNewValue no longer tries to find the "prettiest" value as we round the chiclets during normal increments and use the chiclet scale (x/16).
QA
closes #201
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.