summaryrefslogtreecommitdiff
path: root/src/user/meminfo
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-03-11 22:00:22 -0500
committerBenji Dial <benji6283@gmail.com>2021-03-11 22:00:22 -0500
commit5fcf57739e68a8b5053e03778aaee0eed445babd (patch)
treee7a8bab18668d112e58b1b48190195035c71fa8a /src/user/meminfo
parent0f2398d1f622cce37925f52d978d92e6cce1c7a9 (diff)
downloadportland-os-5fcf57739e68a8b5053e03778aaee0eed445babd.tar.gz
settings editor, and lots of changes in service of that
Diffstat (limited to 'src/user/meminfo')
-rw-r--r--src/user/meminfo/meminfo.cpp6
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();