From 49eff650b6907a0f3c8cc690ef91e061c665f7c3 Mon Sep 17 00:00:00 2001 From: steffen Date: Tue, 26 Feb 2013 23:33:27 +0000 Subject: [PATCH] GUIList changes... --- gui/gui_entry.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/gui/gui_entry.c b/gui/gui_entry.c index 6ecab94..b24c998 100644 --- a/gui/gui_entry.c +++ b/gui/gui_entry.c @@ -1,4 +1,4 @@ -/* $Id: gui_entry.c,v 1.4 2013/02/26 22:13:04 steffen Exp $ */ +/* $Id: gui_entry.c,v 1.5 2013/02/26 23:33:27 steffen Exp $ */ /*************************************************************************** * gui_entry.c * @@ -31,19 +31,20 @@ /**************************************************************************** * entry */ -void gui_entry_draw (GUIEntry *entry) { +void gui_entry_draw (GUIItem *item) { char text1[GUI_TEXTLEN]; char text2[GUI_TEXTLEN]; struct line_style ls; - + GUIEntry *entry; + ls.width = 1.0; - if (currentwin->focus == (void*) entry) + if (currentwin->focus == (void*) item) ls.c = ls.borderc = color[COLOR_white][3]; else ls.c = ls.borderc = color[COLOR_white][2]; - gfx_draw_line (currentwin->screen, entry->x, entry->y+entry->h, entry->x+entry->w, entry->y+entry->h, ls); - gfx_draw_line (currentwin->screen, entry->x, entry->y+entry->h, entry->x, entry->y+entry->h-2, ls); - gfx_draw_line (currentwin->screen, entry->x+entry->w, entry->y+entry->h, entry->x+entry->w, entry->y+entry->h-2, ls); + gfx_draw_line (currentwin->screen, item->x, item->y+item->h, item->x+item->w, item->y+item->h, ls); + gfx_draw_line (currentwin->screen, item->x, item->y+item->h, item->x, item->y+item->h-2, ls); + gfx_draw_line (currentwin->screen, item->x+item->w, item->y+item->h, item->x+item->w, item->y+item->h-2, ls); if (entry->curpos >= strlen (entry->text)) { entry->curpos = strlen (entry->text);