Skip to content

Commit

Permalink
roll back unneeded changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Oct 8, 2024
1 parent 4df5bc6 commit f3efc9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crates/viewer/re_data_ui/src/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn show_image_preview(
desired_size: egui::Vec2,
) -> Result<egui::Response, (egui::Response, anyhow::Error)> {
fn texture_size(colormapped_texture: &ColormappedTexture) -> Vec2 {
let [w, h] = colormapped_texture.texture.width_height();
let [w, h] = colormapped_texture.width_height();
egui::vec2(w as f32, h as f32)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ fn try_show_zoomed_image_region(
interaction_id: &TextureInteractionId<'_>,
center_texel: [isize; 2],
) -> anyhow::Result<()> {
let [width, height] = colormapped_texture.texture.width_height();
let [width, height] = colormapped_texture.width_height();

const POINTS_PER_TEXEL: f32 = 5.0;
let size = egui::Vec2::splat(((ZOOMED_IMAGE_TEXEL_RADIUS * 2 + 1) as f32) * POINTS_PER_TEXEL);
Expand Down
2 changes: 1 addition & 1 deletion crates/viewer/re_space_view_tensor/src/space_view_class.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ impl TensorSpaceView {
&colormap,
gamma,
)?;
let [width, height] = colormapped_texture.texture.width_height();
let [width, height] = colormapped_texture.width_height();

let view_fit: ViewFit = ViewProperty::from_archetype::<TensorViewFit>(
ctx.blueprint_db(),
Expand Down

0 comments on commit f3efc9d

Please sign in to comment.