aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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(), "...");