I forgot why I did it the other way lol (revert)
This commit is contained in:
@@ -7,7 +7,7 @@ pub struct Image {
|
||||
}
|
||||
|
||||
impl<Ctx> Widget<Ctx> for Image {
|
||||
fn draw(&self, mut painter: Painter<Ctx>) {
|
||||
fn draw(&self, painter: &mut Painter<Ctx>) {
|
||||
if let Some(handle) = &self.handle {
|
||||
painter.draw_texture(handle);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user