From a9c0ea375323a3f801636f95a76afd0fd1328c5d Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 22 Mar 2011 20:37:08 +0000 Subject: * Option for counting CPUs from zero (thanks to Sean Noonan) * Meters update in every screen (no longer halting while on Setup, etc.) --- FunctionBar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'FunctionBar.c') diff --git a/FunctionBar.c b/FunctionBar.c index ee65333d..5a964b5e 100644 --- a/FunctionBar.c +++ b/FunctionBar.c @@ -95,11 +95,11 @@ void FunctionBar_setLabel(FunctionBar* this, int event, const char* text) { } } -void FunctionBar_draw(FunctionBar* this, char* buffer) { +void FunctionBar_draw(const FunctionBar* this, char* buffer) { FunctionBar_drawAttr(this, buffer, CRT_colors[FUNCTION_BAR]); } -void FunctionBar_drawAttr(FunctionBar* this, char* buffer, int attr) { +void FunctionBar_drawAttr(const FunctionBar* this, char* buffer, int attr) { attrset(CRT_colors[FUNCTION_BAR]); mvhline(LINES-1, 0, ' ', COLS); int x = 0; @@ -118,7 +118,7 @@ void FunctionBar_drawAttr(FunctionBar* this, char* buffer, int attr) { attrset(CRT_colors[RESET_COLOR]); } -int FunctionBar_synthesizeEvent(FunctionBar* this, int pos) { +int FunctionBar_synthesizeEvent(const FunctionBar* this, int pos) { int x = 0; for (int i = 0; i < this->size; i++) { x += strlen(this->keys[i]); -- cgit v1.2.3