mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Change clarity range from 0-3 (1 per step) to 0-5 (0.5 per step)
This commit is contained in:
parent
0833afc0a2
commit
2dc3097737
@ -1041,7 +1041,7 @@ class Preferences {
|
||||
[Preferences.VIDEO_CLARITY]: {
|
||||
'default': 0,
|
||||
'min': 0,
|
||||
'max': 3,
|
||||
'max': 5,
|
||||
},
|
||||
[Preferences.VIDEO_FILL_FULL_SCREEN]: {
|
||||
'default': false,
|
||||
@ -2363,7 +2363,7 @@ function getVideoPlayerFilterStyle() {
|
||||
|
||||
const clarity = PREFS.get(Preferences.VIDEO_CLARITY);
|
||||
if (clarity != 0) {
|
||||
const level = 7 - (clarity - 1); // 5,6,7
|
||||
const level = (7 - (clarity - 1) * 0.5).toFixed(1); // 5, 5.5, 6, 6.5, 7
|
||||
const matrix = `0 -1 0 -1 ${level} -1 0 -1 0`;
|
||||
document.getElementById('better-xcloud-filter-clarity-matrix').setAttributeNS(null, 'kernelMatrix', matrix);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user