From 4380b92516fa8f8de53b67e6d794f19d37c52738 Mon Sep 17 00:00:00 2001 From: Nick Koirala Date: Fri, 14 Nov 2025 09:18:10 +1300 Subject: [PATCH] chore: fopen_s for building on linux --- imgui.ini | 24 ++++++++++++------------ include/Application.h | 4 ++-- include/gui/ImGuiNotify.hpp | 2 +- main.cpp | 2 +- src/Application.cpp | 2 ++ 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/imgui.ini b/imgui.ini index 853f9aa..8981af3 100644 --- a/imgui.ini +++ b/imgui.ini @@ -10,20 +10,20 @@ Collapsed=0 [Window][DockSpaceHost] Pos=0,0 -Size=800,600 +Size=1280,720 Collapsed=0 [Window][Left Panel] -Pos=8,31 -Size=359,561 +Pos=292,567 +Size=980,145 Collapsed=0 -DockId=0x00000001,0 +DockId=0x00000002,0 [Window][Right Panel] -Pos=403,31 -Size=389,561 +Pos=8,27 +Size=282,685 Collapsed=0 -DockId=0x00000004,0 +DockId=0x00000003,0 [Window][##TOAST2] Pos=548,314 @@ -56,9 +56,9 @@ Size=232,82 Collapsed=0 [Docking][Data] -DockSpace ID=0x9076BACA Window=0x34F970D7 Pos=8,31 Size=784,561 Split=X - DockNode ID=0x00000003 Parent=0x9076BACA SizeRef=393,561 Split=X - DockNode ID=0x00000001 Parent=0x00000003 SizeRef=389,561 Selected=0x995FC207 - DockNode ID=0x00000002 Parent=0x00000003 SizeRef=393,561 CentralNode=1 - DockNode ID=0x00000004 Parent=0x9076BACA SizeRef=389,561 Selected=0x6D1308E5 +DockSpace ID=0x9076BACA Window=0x34F970D7 Pos=8,27 Size=1264,685 Split=X Selected=0x6D1308E5 + DockNode ID=0x00000003 Parent=0x9076BACA SizeRef=282,685 Selected=0x6D1308E5 + DockNode ID=0x00000004 Parent=0x9076BACA SizeRef=980,685 Split=Y + DockNode ID=0x00000001 Parent=0x00000004 SizeRef=1264,538 CentralNode=1 Selected=0x6D1308E5 + DockNode ID=0x00000002 Parent=0x00000004 SizeRef=1264,145 Selected=0x995FC207 diff --git a/include/Application.h b/include/Application.h index 53af60c..cc57d4e 100644 --- a/include/Application.h +++ b/include/Application.h @@ -19,8 +19,8 @@ private: FILE* logFile; GuiManager guiManager; - static const int WINDOW_WIDTH = 800; - static const int WINDOW_HEIGHT = 600; + static const int WINDOW_WIDTH = 1280; + static const int WINDOW_HEIGHT = 720; static const int TARGET_FPS = 60; static const char* WINDOW_TITLE; static const char* SCRIPT_FILE; diff --git a/include/gui/ImGuiNotify.hpp b/include/gui/ImGuiNotify.hpp index d4b992f..4219029 100644 --- a/include/gui/ImGuiNotify.hpp +++ b/include/gui/ImGuiNotify.hpp @@ -489,7 +489,7 @@ namespace ImGui float height = 0.f; - for (int i = 0; i < notifications.size();) + for (size_t i = 0; i < notifications.size();) { ImGuiToast *currentToast = ¬ifications[i]; diff --git a/main.cpp b/main.cpp index f4ff9d4..ff21cba 100644 --- a/main.cpp +++ b/main.cpp @@ -13,4 +13,4 @@ int main() { app.Shutdown(); return 0; -} +} \ No newline at end of file diff --git a/src/Application.cpp b/src/Application.cpp index 7283659..2033ab0 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -11,6 +11,8 @@ #include "gui/ImGuiNotify.hpp" #include "GuiManager.h" #endif + +#define fopen_s(pFile, filename, mode) ((*(pFile) = fopen((filename), (mode))) == NULL) const char *Application::WINDOW_TITLE = "Raylib + AngelScript"; const char *Application::SCRIPT_FILE = "scripts/test.as";