Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ presser = { version = "0.3" }
# such as the ability to link/load a Vulkan library.
ash = { version = "0.38", optional = true, default-features = false, features = ["debug"] }
# Only needed for visualizer.
egui = { version = ">=0.24, <=0.27", optional = true, default-features = false }
egui_extras = { version = ">=0.24, <=0.27", optional = true, default-features = false }
egui = { version = ">=0.24, <=0.31", optional = true, default-features = false }
egui_extras = { version = ">=0.24, <=0.31", optional = true, default-features = false }
Comment on lines -33 to +34
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since there were a few name changes (API breaks) in the new version, are you sure this still builds with egui all the way back to 0.24?


[target.'cfg(target_vendor = "apple")'.dependencies]
objc2 = { version = "0.6", default-features = false, optional = true }
Expand Down
5 changes: 3 additions & 2 deletions src/visualizer/memory_chunks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ impl MemoryChunksVisualizationSettings {
ui.horizontal(|ui| {
ui.add(
DragValue::new(&mut self.width_in_bytes)
.clamp_range(BYTES_PER_UNIT_MIN..=BYTES_PER_UNIT_MAX)
.range(BYTES_PER_UNIT_MIN..=BYTES_PER_UNIT_MAX)
.speed(10.0),
);
ui.label("Bytes per line");
Expand Down Expand Up @@ -95,10 +95,11 @@ pub(crate) fn render_memory_chunks_ui<'a>(
if ui.is_rect_visible(resp.rect) {
ui.painter().rect(
resp.rect,
egui::Rounding::ZERO,
egui::CornerRadius::ZERO,
color_scheme
.get_allocation_type_color(data[cursor_idx].allocation_type),
egui::Stroke::new(1.0, Color32::BLACK),
egui::StrokeKind::Outside,
);

resp.on_hover_ui_at_pointer(|ui| {
Expand Down