diff options
Diffstat (limited to 'src/user/meminfo/meminfo.cpp')
-rw-r--r-- | src/user/meminfo/meminfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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(); |