diff options
author | Alexander Golubev <fatzer2@gmail.com> | 2023-12-24 11:09:32 +0300 |
---|---|---|
committer | Alexander Golubev <fatzer2@gmail.com> | 2023-12-24 12:57:08 +0300 |
commit | d32b076ae65478e6ce78ac3cc1db6957cf1ebb25 (patch) | |
tree | e9567d4bc475e6ffe85c89cb4433ed794250962f /tderandr/randr.h | |
parent | ac6c53f3fa24444a902adaf7f904b320ef327ec5 (diff) | |
download | tdelibs-fix/tde-75.tar.gz tdelibs-fix/tde-75.zip |
tderandr: workaround for tde/75fix/tde-75
Some videocards' drivers (most notably propryetary nvidia) report
incorrect screen refresh rate via XRRRates(). Use
XRRGetScreenResources() + some math borrowed from xrandr instead.
Bug: https://mirror.git.trinitydesktop.org/gitea/TDE/tde/issues/75
Signed-off-by: Alexander Golubev <fatzer2@gmail.com>
Diffstat (limited to 'tderandr/randr.h')
-rw-r--r-- | tderandr/randr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tderandr/randr.h b/tderandr/randr.h index 36e87badd..36cdd0088 100644 --- a/tderandr/randr.h +++ b/tderandr/randr.h @@ -21,6 +21,7 @@ #include <tqobject.h> #include <tqstringlist.h> +#include <tqvaluevector.h> #include <tqptrlist.h> #include <tdecmodule.h> @@ -152,6 +153,7 @@ public: /** * Refresh rate functions. */ + TQValueVector<int> refreshRatesValues(int size) const; TQStringList refreshRates(int size) const; TQString refreshRateDirectDescription(int rate) const; |