aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2025-05-24 16:38:36 +0200
committerdec05eba <dec05eba@protonmail.com>2025-05-24 16:38:36 +0200
commitb807712d79121157b6a6d0df902f0f66da82a23f (patch)
tree22932f137a3a74f81597ea1f69994f2d1815b59c
parent2df417f23f8a893c4ecdb9f48a95898382bb39b9 (diff)
Mention setcap dependency
-rw-r--r--README.md1
-rw-r--r--src/Overlay.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4e0a33b..07bfb45 100644
--- a/README.md
+++ b/README.md
@@ -28,6 +28,7 @@ These are the dependencies needed to build GPU Screen Recorder UI:
* libpulse (libpulse-simple)
* libdrm
* wayland (wayland-client, wayland-egl, wayland-scanner)
+* setcap (libcap)
## Runtime dependencies
There are also additional dependencies needed at runtime:
diff --git a/src/Overlay.cpp b/src/Overlay.cpp
index aaf22a6..685d95e 100644
--- a/src/Overlay.cpp
+++ b/src/Overlay.cpp
@@ -1640,6 +1640,7 @@ namespace gsr {
return result;
}
+ // TODO: Utf8 truncate
static void truncate_string(std::string &str, int max_length) {
if((int)str.size() > max_length)
str.replace(str.begin() + max_length, str.end(), "...");