Skip to content

Commit

Permalink
heap bigger for 64 bit machines (maybe for #214)
Browse files Browse the repository at this point in the history
  • Loading branch information
bwhitman committed May 15, 2024
1 parent 5637b0b commit 3f555bc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion tulip/fs/ex/buttons.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def cb(obj, code, ui_id):
checkbox = obj
print("checkbox %d now %s" % (ui_id, checkbox.get_state()))

tulip.ui_clear()
tulip.ui_callback = cb


Expand Down
2 changes: 1 addition & 1 deletion tulip/macos/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ STATIC uint emit_opt = MP_EMIT_OPT_NONE;
// Make it larger on a 64 bit machine, because pointers are larger.

// TODO - make this equivalent always with Tulip CC
long heap_size = 2 * 1024 * 1024 * (sizeof(mp_uint_t) / 4);
long heap_size = 4 * 1024 * 1024 * (sizeof(mp_uint_t) / 4);
#endif

// Number of heaps to assign by default if MICROPY_GC_SPLIT_HEAP=1
Expand Down
1 change: 0 additions & 1 deletion tulip/shared/py/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,6 @@ def ui_text(ui_id=None, text=None, placeholder=None, x=0, y=0, w=None, h=None, b
if text is not None:
ta.set_text(text)
if(one_line): ta.set_one_line(True)
current_uiscreen().add_to_kb(ta)
if(ui_id is not None):
ta.add_event_cb(lambda e: lv_callback(e, ui_id), lv.EVENT.VALUE_CHANGED, None)
return ta
Expand Down

0 comments on commit 3f555bc

Please sign in to comment.