-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into fix-small-memory-issue
- Loading branch information
Showing
28 changed files
with
155 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
From 7cd9b89560b66b992db9fd0e620c2d28ad9a9645 Mon Sep 17 00:00:00 2001 | ||
From: briaguya <[email protected]> | ||
Date: Fri, 10 Jan 2025 04:48:50 -0500 | ||
Subject: [PATCH 1/2] sdl gamepad fix | ||
|
||
--- | ||
backends/imgui_impl_sdl2.cpp | 3 --- | ||
1 file changed, 3 deletions(-) | ||
|
||
diff --git a/backends/imgui_impl_sdl2.cpp b/backends/imgui_impl_sdl2.cpp | ||
index 23f12796..a7fef045 100644 | ||
--- a/backends/imgui_impl_sdl2.cpp | ||
+++ b/backends/imgui_impl_sdl2.cpp | ||
@@ -816,9 +816,6 @@ static void ImGui_ImplSDL2_UpdateGamepads() | ||
bd->WantUpdateGamepadsList = false; | ||
} | ||
|
||
- // FIXME: Technically feeding gamepad shouldn't depend on this now that they are regular inputs. | ||
- if ((io.ConfigFlags & ImGuiConfigFlags_NavEnableGamepad) == 0) | ||
- return; | ||
io.BackendFlags &= ~ImGuiBackendFlags_HasGamepad; | ||
if (bd->Gamepads.Size == 0) | ||
return; | ||
-- | ||
2.47.1 | ||
|
||
|
||
From 635226a311071e80c22e0c58c9cb5c9d950d2e17 Mon Sep 17 00:00:00 2001 | ||
From: briaguya <[email protected]> | ||
Date: Fri, 10 Jan 2025 04:52:36 -0500 | ||
Subject: [PATCH 2/2] add config stuff | ||
|
||
--- | ||
imconfig.h | 5 ++++- | ||
1 file changed, 4 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/imconfig.h b/imconfig.h | ||
index 8f8bc3b9..cc578e3f 100644 | ||
--- a/imconfig.h | ||
+++ b/imconfig.h | ||
@@ -111,7 +111,7 @@ | ||
operator MyVec4() const { return MyVec4(x,y,z,w); } | ||
*/ | ||
//---- ...Or use Dear ImGui's own very basic math operators. | ||
-//#define IMGUI_DEFINE_MATH_OPERATORS | ||
+#define IMGUI_DEFINE_MATH_OPERATORS | ||
|
||
//---- Use 32-bit vertex indices (default is 16-bit) is one way to allow large meshes with more than 64K vertices. | ||
// Your renderer backend will need to support it (most example renderer backends support both 16/32-bit indices). | ||
@@ -140,3 +140,6 @@ namespace ImGui | ||
void MyFunction(const char* name, MyMatrix44* mtx); | ||
} | ||
*/ | ||
+ | ||
+// handle https://github.com/ocornut/imgui/issues/1641 the old way | ||
+#define ImTextureID void* | ||
-- | ||
2.47.1 | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.