mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
Merge pull request #1755 from mitchellh/imgui
update Dear Imgui for Inspector to 1.90.6
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
# This file is auto-generated! check build-support/check-zig-cache-hash.sh for
|
||||
# more details.
|
||||
"sha256-7V+aNCAxC+9GCSJAKOtQN+ho+gVsheLmzbQPNlNzbp4="
|
||||
"sha256-JfFdQlfgaoreHmSbyujDFVPPgbAIL1VktGvs/woUgKk="
|
||||
|
@ -6,8 +6,8 @@
|
||||
// This should be kept in sync with the submodule in the cimgui source
|
||||
// code to be safe that they're compatible.
|
||||
.imgui = .{
|
||||
.url = "https://github.com/ocornut/imgui/archive/1d8e48c161370c37628c4f37f3f87cb19fbcb723.tar.gz",
|
||||
.hash = "12205e93e208aada4c835acdc3e2c1fac95b3ad92b47abe6412ab043f9f13817ad9b",
|
||||
.url = "https://github.com/ocornut/imgui/archive/e391fe2e66eb1c96b1624ae8444dc64c23146ef4.tar.gz",
|
||||
.hash = "1220bc6b9daceaf7c8c60f3c3998058045ba0c5c5f48ae255ff97776d9cd8bfc6402",
|
||||
},
|
||||
|
||||
.apple_sdk = .{ .path = "../apple-sdk" },
|
||||
|
9635
pkg/cimgui/vendor/cimgui.cpp
vendored
9635
pkg/cimgui/vendor/cimgui.cpp
vendored
File diff suppressed because it is too large
Load Diff
8751
pkg/cimgui/vendor/cimgui.h
vendored
8751
pkg/cimgui/vendor/cimgui.h
vendored
File diff suppressed because it is too large
Load Diff
@ -1116,7 +1116,7 @@ pub const Inspector = struct {
|
||||
};
|
||||
|
||||
pub fn init(surface: *Surface) !Inspector {
|
||||
const ig_ctx = cimgui.c.igCreateContext(null);
|
||||
const ig_ctx = cimgui.c.igCreateContext(null) orelse return error.OutOfMemory;
|
||||
errdefer cimgui.c.igDestroyContext(ig_ctx);
|
||||
cimgui.c.igSetCurrentContext(ig_ctx);
|
||||
const io: *cimgui.c.ImGuiIO = cimgui.c.igGetIO();
|
||||
|
@ -29,7 +29,7 @@ instant: ?std.time.Instant = null,
|
||||
pub fn init(self: *ImguiWidget) !void {
|
||||
// Each widget gets its own imgui context so we can have multiple
|
||||
// imgui views in the same application.
|
||||
const ig_ctx = cimgui.c.igCreateContext(null);
|
||||
const ig_ctx = cimgui.c.igCreateContext(null) orelse return error.OutOfMemory;
|
||||
errdefer cimgui.c.igDestroyContext(ig_ctx);
|
||||
cimgui.c.igSetCurrentContext(ig_ctx);
|
||||
const io: *cimgui.c.ImGuiIO = cimgui.c.igGetIO();
|
||||
|
Reference in New Issue
Block a user