From patchwork Wed Jun 15 13:50:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 1941 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id D8FC123DE6 for ; Wed, 15 Jun 2011 13:52:48 +0000 (UTC) Received: from mail-vw0-f52.google.com (mail-vw0-f52.google.com [209.85.212.52]) by fiordland.canonical.com (Postfix) with ESMTP id A8A94A1896B for ; Wed, 15 Jun 2011 13:52:48 +0000 (UTC) Received: by mail-vw0-f52.google.com with SMTP id 16so416327vws.11 for ; Wed, 15 Jun 2011 06:52:48 -0700 (PDT) Received: by 10.52.108.101 with SMTP id hj5mr774237vdb.247.1308145968446; Wed, 15 Jun 2011 06:52:48 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.52.183.130 with SMTP id em2cs126648vdc; Wed, 15 Jun 2011 06:52:48 -0700 (PDT) Received: by 10.216.229.82 with SMTP id g60mr2165182weq.70.1308145966837; Wed, 15 Jun 2011 06:52:46 -0700 (PDT) Received: from smtp.smtpout.orange.fr (smtp05.smtpout.orange.fr [80.12.242.127]) by mx.google.com with ESMTP id e7si1373694wbh.102.2011.06.15.06.52.46; Wed, 15 Jun 2011 06:52:46 -0700 (PDT) Received-SPF: neutral (google.com: 80.12.242.127 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) client-ip=80.12.242.127; Authentication-Results: mx.google.com; spf=neutral (google.com: 80.12.242.127 is neither permitted nor denied by best guess record for domain of daniel.lezcano@linaro.org) smtp.mail=daniel.lezcano@linaro.org Received: from monster.dhcp.lxc ([92.134.76.78]) by mwinf5d28 with ME id wDsa1g00D1hMfSL03DslEd; Wed, 15 Jun 2011 15:52:46 +0200 From: Daniel Lezcano To: daniel.lezcano@linaro.org Cc: linaro-dev@lists.linaro.org, patches@linaro.org Subject: [powerdebug 21/22] remove unselect line Date: Wed, 15 Jun 2011 15:50:55 +0200 Message-Id: <1308145856-6112-21-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1308145856-6112-1-git-send-email-daniel.lezcano@linaro.org> References: <1308145856-6112-1-git-send-email-daniel.lezcano@linaro.org> Signed-off-by: Daniel Lezcano --- display.c | 16 +--------------- 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;