diff --git a/internal_filesystem/apps/com.micropythonos.draw/META-INF/MANIFEST.JSON b/internal_filesystem/apps/com.micropythonos.draw/META-INF/MANIFEST.JSON index 36db3c5c..783ec6bb 100644 --- a/internal_filesystem/apps/com.micropythonos.draw/META-INF/MANIFEST.JSON +++ b/internal_filesystem/apps/com.micropythonos.draw/META-INF/MANIFEST.JSON @@ -3,10 +3,10 @@ "publisher": "MicroPythonOS", "short_description": "Simple drawing app", "long_description": "Draw simple shapes on the screen.", -"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.draw/icons/com.micropythonos.draw_0.0.2_64x64.png", -"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.draw/mpks/com.micropythonos.draw_0.0.2.mpk", +"icon_url": "https://apps.micropythonos.com/apps/com.micropythonos.draw/icons/com.micropythonos.draw_0.0.3_64x64.png", +"download_url": "https://apps.micropythonos.com/apps/com.micropythonos.draw/mpks/com.micropythonos.draw_0.0.3.mpk", "fullname": "com.micropythonos.draw", -"version": "0.0.2", +"version": "0.0.3", "category": "graphics", "activities": [ { diff --git a/internal_filesystem/apps/com.micropythonos.draw/assets/draw.py b/internal_filesystem/apps/com.micropythonos.draw/assets/draw.py index f2be3d39..926bb696 100644 --- a/internal_filesystem/apps/com.micropythonos.draw/assets/draw.py +++ b/internal_filesystem/apps/com.micropythonos.draw/assets/draw.py @@ -18,9 +18,9 @@ class Draw(Activity): def onCreate(self): screen = lv.obj() self.canvas = lv.canvas(screen) - disp = lv.display_get_default() - self.hor_res = disp.get_horizontal_resolution() - self.ver_res = disp.get_vertical_resolution() + d = lv.display_get_default() + self.hor_res = d.get_horizontal_resolution() + self.ver_res = d.get_vertical_resolution() self.canvas.set_size(self.hor_res, self.ver_res) self.canvas.set_style_bg_color(lv.color_white(), 0) buffer = bytearray(self.hor_res * self.ver_res * 4)