Skip to content

Commit

Permalink
Update imgui to 0.7.0 (#1)
Browse files Browse the repository at this point in the history
* Update imgui to 0.7.0

* Change the submodule URL to https
  • Loading branch information
chrrs authored Aug 2, 2021
1 parent c483b59 commit 136d4ae
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[submodule "imgui-memory-editor-sys/vendor/imgui-memory-editor"]
path = imgui-memory-editor-sys/vendor/imgui-memory-editor
url = git@github.com:ocornut/imgui_club.git
url = https://github.com/ocornut/imgui_club.git
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ keywords = ["imgui", "memory", "editor"]
categories = ["gui", "api-bindings"]

[dependencies]
imgui = "0.6.1"
imgui = "0.7.0"
imgui-memory-editor-sys = { path = "imgui-memory-editor-sys", version = "0.2.0" }
2 changes: 1 addition & 1 deletion imgui-memory-editor-sys/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ links = "imgui_memory_editor"

[dependencies]
cty = "0.2.1"
imgui-sys = "0.6.0"
imgui-sys = "0.7.0"

[build-dependencies]
cc = "1.0.66"
4 changes: 2 additions & 2 deletions src/memory_editor.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
use std::ffi::c_void;

use imgui::{ImColor, ImStr, Ui};
use imgui::{ImColor32, ImStr, Ui};


// TODO: Alias ReadHandlerTrait and writeHandlerTrait to FnMuts once trait_alias is stabilized
Expand Down Expand Up @@ -120,7 +120,7 @@ impl<'a, T> MemoryEditor<'a, T> {
}
// background color of highlighted bytes.
#[inline]
pub fn highlight_color(mut self, color: ImColor) -> Self {
pub fn highlight_color(mut self, color: ImColor32) -> Self {
self.raw.HighlightColor = color.into();
self
}
Expand Down

0 comments on commit 136d4ae

Please sign in to comment.