From b807712d79121157b6a6d0df902f0f66da82a23f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 24 May 2025 16:38:36 +0200 Subject: Mention setcap dependency --- README.md | 1 + src/Overlay.cpp | 1 + 2 files changed, 2 insertions(+) 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(), "..."); -- cgit v1.2.3-70-g09d2