From 6dbe756b2b7ebb6cc1bf7782a73d1e951c611396 Mon Sep 17 00:00:00 2001 From: Ronald Caesar Date: Sun, 10 Aug 2025 01:53:05 -0400 Subject: [PATCH] gui: updated gui_t code example docs gui::init() was removed in favour of gui::init_imgui() and the docs for gui_t was not updated to reflect the change. Signed-off-by: Ronald Caesar --- gui/gui.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gui/gui.h b/gui/gui.h index 1f1fc6c..1561fb2 100755 --- a/gui/gui.h +++ b/gui/gui.h @@ -124,10 +124,12 @@ void window_destroy(window_t* window); * gui::gui_t gui; * * // Initialize the GUI system - * if (!gui::init(&gui, &main_window)) { - * fprintf(stderr, "Failed to initialize the GUI. \n"); - * return -1; - * } + * if (bool return_code = gui::init_imgui(&window); false == return_code) + * { + * LOG_ERROR(Render, "Failed to initialize GUI"); + * return EXIT_FAILURE; + * } + * * * // Use the GUI for rendering... * ...