Skip to content

Commit adf342a

Browse files
feat(inject): remove "UI" text
1 parent bcb3d0d commit adf342a

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/inject/inject.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ void StartInjectUI() {
559559
rt.transparent = true;
560560
rt.width = 400;
561561
rt.height = 230;
562+
rt.title = "";
562563
if (auto r = rt.init(); !r) {
563564
std::cerr << "Failed to initialize render target." << std::endl;
564565
return;

src/ui/ui.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ std::expected<bool, std::string> render_target::init() {
7373
glfwWindowHint(GLFW_DECORATED, decorated);
7474

7575
glfwWindowHint(GLFW_VISIBLE, 0);
76-
window = glfwCreateWindow(width, height, "UI", nullptr, nullptr);
76+
window = glfwCreateWindow(width, height, title.c_str(), nullptr, nullptr);
7777
p.set_value();
7878
});
7979

src/ui/ui.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ struct render_target {
2828
bool topmost = false;
2929
bool resizable = false;
3030
bool vsync = true;
31-
31+
std::string title = "Window";
3232
NVGcontext *nvg = nullptr;
3333
int width = 1280;
3434
int height = 720;

0 commit comments

Comments
 (0)