diff --git a/manual/tracy.tex b/manual/tracy.tex index 71fe80fb..2703d60f 100644 --- a/manual/tracy.tex +++ b/manual/tracy.tex @@ -568,7 +568,7 @@ The following defines may be of interest: \begin{itemize} \item \texttt{TRACY\_FILESELECTOR} -- controls whether a system load/save dialog is compiled in. If it's left out, the saved traces will be named \texttt{trace.tracy}. \item \texttt{TRACY\_NO\_STATISTICS} -- Tracy will perform statistical data collection on the fly, if this macro is \emph{not} defined. This allows extended analysis of the trace (for example, you can perform a live search for matching zones) at a small CPU processing cost and a considerable memory usage increase (at least 8 bytes per zone). -\item \texttt{TRACY\_ROOT\_WINDOW} -- the main profiler view will occupy whole window if this macro is defined. Additional setup is required for this to work. If you are embedding the server into your application you probably do \emph{not} want this. +\item \texttt{TRACY\_NO\_ROOT\_WINDOW} -- the main profiler view won't occupy whole window if this macro is defined. Additional setup is required for this to work. If you are embedding the server into your application you probably want to enable this option. \end{itemize} \subsection{Naming threads} diff --git a/profiler/build/unix/build.mk b/profiler/build/unix/build.mk index 49bc7e24..ac2a6847 100644 --- a/profiler/build/unix/build.mk +++ b/profiler/build/unix/build.mk @@ -1,6 +1,6 @@ CFLAGS += CXXFLAGS := $(CFLAGS) -std=c++17 -DEFINES += -DTRACY_FILESELECTOR -DTRACY_ROOT_WINDOW -DIMGUI_IMPL_OPENGL_LOADER_GL3W +DEFINES += -DTRACY_FILESELECTOR -DIMGUI_IMPL_OPENGL_LOADER_GL3W INCLUDES := $(shell pkg-config --cflags glfw3 freetype2 capstone) -I../../../imgui -I../../libs/gl3w LIBS := $(shell pkg-config --libs glfw3 freetype2 capstone) -lpthread -ldl PROJECT := Tracy diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 3b640bfb..91ff9a1a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -423,7 +423,7 @@ bool View::DrawImpl() keepOpenPtr = &keepOpen; } -#ifdef TRACY_ROOT_WINDOW +#ifndef TRACY_NO_ROOT_WINDOW if( !m_titleSet && m_stcb ) { m_titleSet = true;