aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-15 15:45:12 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-15 15:45:12 +0200
commit935d77a61e4190714fc7e68a39c392122b793032 (patch)
treeebee7de2a547bfb5e8ab7c56897c56289d9a55f6
parent4120e26e3126914090087738c8e3aa371ab9eea5 (diff)
downloadpowerdebug-935d77a61e4190714fc7e68a39c392122b793032.tar.gz
remove unselect line
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--display.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/display.c b/display.c
index 5fd14c7..1ba71e5 100644
--- a/display.c
+++ b/display.c
@@ -269,27 +269,15 @@ int display_refresh_pad(int win)
0, 2, 0, maxy - 2, maxx);
}
-static int inline display_show_un_selection(int win, int line,
- bool highlight, bool bold)
+int display_show_unselection(int win, int line, bool bold)
{
if (mvwchgat(windata[win].pad, line, 0, -1,
- highlight ? WA_STANDOUT :
bold ? WA_BOLD: WA_NORMAL, 0, NULL) < 0)
return -1;
return display_refresh_pad(win);
}
-int display_show_selection(int win, int line)
-{
- return display_show_un_selection(win, line, true, false);
-}
-
-int display_show_unselection(int win, int line, bool bold)
-{
- return display_show_un_selection(win, line, false, bold);
-}
-
void *display_get_row_data(int win)
{
return windata[win].rowdata[windata[win].cursor].data;
@@ -360,7 +348,6 @@ int display_next_line(void)
scrolling++;
cursor++;
}
- display_show_selection(current_win, cursor);
windata[current_win].scrolling = scrolling;
windata[current_win].cursor = cursor;
@@ -384,7 +371,6 @@ int display_prev_line(void)
scrolling--;
cursor--;
}
- display_show_selection(current_win, cursor);
windata[current_win].scrolling = scrolling;
windata[current_win].cursor = cursor;