From 5cb2ea4f0c004cbd47d854f01038e916b0397444 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Tue, 24 Oct 2023 08:56:39 +0200 Subject: [PATCH] disabled imgui demo for now --- src/client/main.cpp | 4 +--- src/client/overlay.cpp | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/client/main.cpp b/src/client/main.cpp index 2c0c355..597b78d 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -3,8 +3,7 @@ #include int main() { - run_overlay(); - /* + //run_overlay(); if (!open_device()) return -1; @@ -20,6 +19,5 @@ int main() { printf("Value from RPM: %d\n", out); close_device(); - */ return 0; } diff --git a/src/client/overlay.cpp b/src/client/overlay.cpp index 5b2ce91..eaeb382 100644 --- a/src/client/overlay.cpp +++ b/src/client/overlay.cpp @@ -28,7 +28,7 @@ int run_overlay(void) SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1); SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24); SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8); - SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN); + SDL_WindowFlags window_flags = (SDL_WindowFlags)(SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE | SDL_WINDOW_HIDDEN | SDL_WINDOW_ALWAYS_ON_TOP | SDL_WINDOW_UTILITY); SDL_Window* window = SDL_CreateWindow("Dear ImGui SDL3+OpenGL3 example", 1280, 720, window_flags); if (window == nullptr) {