diff options
author | Sohaib Mohamed <sohaib.amhmd@gmail.com> | 2021-09-27 13:08:32 +1000 |
---|---|---|
committer | Nathan Scott <nathans@redhat.com> | 2021-12-07 17:04:49 +1100 |
commit | 31fe29c5a7e1e0b231012543065cacf13f52bf5b (patch) | |
tree | 68926ccb6865225b6fc909029a729d71844a6c31 /ScreensPanel.c | |
parent | cc2547fcf06c481bfd38ec27580941f78f841f8c (diff) |
Pass correct ColorElements values to Panel_setSelectionColor
Diffstat (limited to 'ScreensPanel.c')
-rw-r--r-- | ScreensPanel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ScreensPanel.c b/ScreensPanel.c index e809c062..845c4945 100644 --- a/ScreensPanel.c +++ b/ScreensPanel.c @@ -74,7 +74,7 @@ static HandlerResult ScreensPanel_eventHandlerRenaming(Panel* super, int ch) { item->value = xStrdup(this->buffer); this->renaming = false; super->cursorOn = false; - Panel_setSelectionColor(super, CRT_colors[PANEL_SELECTION_FOCUS]); + Panel_setSelectionColor(super, PANEL_SELECTION_FOCUS); ScreensPanel_update(super); break; } @@ -86,7 +86,7 @@ static HandlerResult ScreensPanel_eventHandlerRenaming(Panel* super, int ch) { item->value = this->saved; this->renaming = false; super->cursorOn = false; - Panel_setSelectionColor(super, CRT_colors[PANEL_SELECTION_FOCUS]); + Panel_setSelectionColor(super, PANEL_SELECTION_FOCUS); break; } } @@ -108,7 +108,7 @@ static void startRenaming(Panel* super) { this->buffer[SCREEN_NAME_LEN] = '\0'; this->cursor = strlen(this->buffer); item->value = this->buffer; - Panel_setSelectionColor(super, CRT_colors[PANEL_EDIT]); + Panel_setSelectionColor(super, PANEL_EDIT); super->selectedLen = strlen(this->buffer); Panel_setCursorToSelection(super); } @@ -153,7 +153,7 @@ static HandlerResult ScreensPanel_eventHandlerNormal(Panel* super, int ch) { case KEY_RECLICK: { this->moving = !(this->moving); - Panel_setSelectionColor(super, this->moving ? CRT_colors[PANEL_SELECTION_FOLLOW] : CRT_colors[PANEL_SELECTION_FOCUS]); + Panel_setSelectionColor(super, this->moving ? PANEL_SELECTION_FOLLOW : PANEL_SELECTION_FOCUS); ListItem* item = (ListItem*) Panel_getSelected(super); if (item) item->moving = this->moving; |