From 5fcf57739e68a8b5053e03778aaee0eed445babd Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Thu, 11 Mar 2021 22:00:22 -0500 Subject: settings editor, and lots of changes in service of that --- src/user/meminfo/meminfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/user/meminfo') diff --git a/src/user/meminfo/meminfo.cpp b/src/user/meminfo/meminfo.cpp index 2b035a4..03f7ae9 100644 --- a/src/user/meminfo/meminfo.cpp +++ b/src/user/meminfo/meminfo.cpp @@ -14,7 +14,7 @@ using namespace raleigh; label *kmem; label *umem; -void refresh(window &w) { +void refresh(window_tag_t) { char *const kstr = format("kernel memory free: %uk", _kernel_dynamic_area_left() * 4); char *const ustr = format("userspace memory free: %uk / %uk", _total_userspace_left() * 4, _total_userspace_size() * 4); @@ -41,10 +41,10 @@ void main() { vbox box(ll); padding pbox(box, 3); - window w(pbox, RGB(bf, bf, bf), (bool (*)(window &))&__pcrt_quit); + window w(pbox); w.add_keybind((struct key_packet){.key_id = key_packet::KEY_F5, .modifiers = key_packet::NO_MODS}, &refresh); - refresh(w); + refresh(0); w.show(); start_runtime(); -- cgit v1.2.3