summaryrefslogtreecommitdiff
path: root/src/helpers/MiscFunctions.hpp
diff options
context:
space:
mode:
authorfazzi <18248986+fxzzi@users.noreply.github.com>2025-04-18 20:44:54 +0100
committerGitHub <noreply@github.com>2025-04-18 21:44:54 +0200
commit51afc2c2910d6f7c1f2dee9c90f54729d3c3d940 (patch)
tree3c4bc00df50699fb4d324b1592d6d5742bb510e8 /src/helpers/MiscFunctions.hpp
parent02f7da2bf23b75f097388b776143af5963b8e13b (diff)
ctm: enable fade animation on nvidia driver versions 575 and above (#10095)
* ctm: enable fade animation on nvidia driver versions 575 and above * format if statement without braces; handle potential throw when checking for nvidia version file
Diffstat (limited to 'src/helpers/MiscFunctions.hpp')
-rw-r--r--src/helpers/MiscFunctions.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/MiscFunctions.hpp b/src/helpers/MiscFunctions.hpp
index bd288638..f361313b 100644
--- a/src/helpers/MiscFunctions.hpp
+++ b/src/helpers/MiscFunctions.hpp
@@ -39,6 +39,7 @@ bool envEnabled(const std::string& env);
Hyprutils::OS::CFileDescriptor allocateSHMFile(size_t len);
bool allocateSHMFilePair(size_t size, Hyprutils::OS::CFileDescriptor& rw_fd_ptr, Hyprutils::OS::CFileDescriptor& ro_fd_ptr);
float stringToPercentage(const std::string& VALUE, const float REL);
+bool isNvidiaDriverVersionAtLeast(int threshold);
template <typename... Args>
[[deprecated("use std::format instead")]] std::string getFormat(std::format_string<Args...> fmt, Args&&... args) {