Skip to content

Commit

Permalink
Revert unnecessary changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Dec 29, 2024
1 parent d43e34d commit 5458595
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions crates/egui/src/widgets/button.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,7 @@ impl Widget for Button<'_> {
});

if ui.is_rect_visible(rect) {
let style = ui.style().clone();
let visuals = style.interact(&response);
let visuals = ui.style().interact(&response);

let (frame_expansion, frame_rounding, frame_fill, frame_stroke) = if selected {
let selection = ui.visuals().selection;
Expand Down
4 changes: 2 additions & 2 deletions crates/egui/src/widgets/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ impl<'a> Image<'a> {
/// # });
/// ```
#[inline]
pub fn paint_at(&self, ui: &mut Ui, rect: Rect) {
pub fn paint_at(&self, ui: &Ui, rect: Rect) {
paint_texture_load_result(
ui,
&self.load_for_size(ui.ctx(), rect.size()),
Expand Down Expand Up @@ -614,7 +614,7 @@ impl<'a> ImageSource<'a> {
}

pub fn paint_texture_load_result(
ui: &mut Ui,
ui: &Ui,
tlr: &TextureLoadResult,
rect: Rect,
show_loading_spinner: Option<bool>,
Expand Down

0 comments on commit 5458595

Please sign in to comment.