File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
internal_filesystem/apps/com.micropythonos.draw Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 33"publisher" : " MicroPythonOS" ,
44"short_description" : " Simple drawing app" ,
55"long_description" : " Draw simple shapes on the screen." ,
6- "icon_url" : " https://apps.micropythonos.com/apps/com.micropythonos.draw/icons/com.micropythonos.draw_0.0.2_64x64 .png" ,
7- "download_url" : " https://apps.micropythonos.com/apps/com.micropythonos.draw/mpks/com.micropythonos.draw_0.0.2 .mpk" ,
6+ "icon_url" : " https://apps.micropythonos.com/apps/com.micropythonos.draw/icons/com.micropythonos.draw_0.0.3_64x64 .png" ,
7+ "download_url" : " https://apps.micropythonos.com/apps/com.micropythonos.draw/mpks/com.micropythonos.draw_0.0.3 .mpk" ,
88"fullname" : " com.micropythonos.draw" ,
9- "version" : " 0.0.2 " ,
9+ "version" : " 0.0.3 " ,
1010"category" : " graphics" ,
1111"activities" : [
1212 {
Original file line number Diff line number Diff line change @@ -18,9 +18,9 @@ class Draw(Activity):
1818 def onCreate (self ):
1919 screen = lv .obj ()
2020 self .canvas = lv .canvas (screen )
21- disp = lv .display_get_default ()
22- self .hor_res = disp .get_horizontal_resolution ()
23- self .ver_res = disp .get_vertical_resolution ()
21+ d = lv .display_get_default ()
22+ self .hor_res = d .get_horizontal_resolution ()
23+ self .ver_res = d .get_vertical_resolution ()
2424 self .canvas .set_size (self .hor_res , self .ver_res )
2525 self .canvas .set_style_bg_color (lv .color_white (), 0 )
2626 buffer = bytearray (self .hor_res * self .ver_res * 4 )
You can’t perform that action at this time.
0 commit comments