diff --git a/platform/c64/ctk/ctk-80col.c b/platform/c64/ctk/ctk-80col.c index 254c5aeb6..a43136f00 100644 --- a/platform/c64/ctk/ctk-80col.c +++ b/platform/c64/ctk/ctk-80col.c @@ -30,7 +30,7 @@ * * Author: Adam Dunkels * - * $Id: ctk-80col.c,v 1.1 2006/06/17 22:41:26 adamdunkels Exp $ + * $Id: ctk-80col.c,v 1.2 2006/09/09 23:09:59 oliverschmidt Exp $ */ #include "contiki.h" @@ -697,8 +697,11 @@ draw_widget(struct ctk_widget *w, w->widget.textentry.ypos == j) { revers(0); cputcxy(xpos, ypos, '>'); + c = 1; for(i = 0; i < w->w; ++i) { - c = text[i + xscroll]; + if(c != 0) { + c = text[i + xscroll]; + } if(i == w->widget.textentry.xpos - xscroll) { revers(1); } else {