Skip to content

Commit b631c26

Browse files
committed
fix/startup/widgets: Image is not drawn
Signed-off-by: lbuque <[email protected]>
1 parent ef97522 commit b631c26

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

m5stack/modules/widgets/image.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@ def __init__(self, use_sprite=True, parent=M5.Lcd) -> None:
1313
self._sprite_init()
1414

1515
def set_width(self, w):
16-
if self._w is w:
17-
return
1816
self._sprite_init()
1917
self._draw(True)
2018

2119
def set_height(self, h):
22-
if self._h is h:
23-
return
2420
self._sprite_init()
2521
self._draw(True)
2622

@@ -34,20 +30,14 @@ def set_src(self, src):
3430
self._draw(True)
3531

3632
def set_x(self, x):
37-
if self._x is x:
38-
return
3933
self._x = x
4034
self._draw(False)
4135

4236
def set_y(self, y):
43-
if self._y is y:
44-
return
4537
self._y = y
4638
self._draw(False)
4739

4840
def set_pos(self, x, y):
49-
if self._x is x and self._y is y:
50-
return
5141
self._x = x
5242
self._y = y
5343
self._draw(False)

0 commit comments

Comments
 (0)