From 1d1f3a23af69f15e62a4c1950727a51925a07397 Mon Sep 17 00:00:00 2001 From: oliverschmidt Date: Sun, 7 Feb 2010 21:38:01 +0000 Subject: [PATCH] - No need for textcolor() before cclear(). - Set textcolor() in ctk_draw_init() to some reasonable value as it is called for re-initialization on Contiki exit. --- core/ctk/ctk-conio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ctk/ctk-conio.c b/core/ctk/ctk-conio.c index ef255d0d9..c953f1695 100644 --- a/core/ctk/ctk-conio.c +++ b/core/ctk/ctk-conio.c @@ -29,7 +29,7 @@ * * This file is part of the "ctk" console GUI toolkit for cc65 * - * $Id: ctk-conio.c,v 1.11 2007/12/20 20:45:06 oliverschmidt Exp $ + * $Id: ctk-conio.c,v 1.12 2010/02/07 21:38:01 oliverschmidt Exp $ * */ @@ -74,6 +74,7 @@ ctk_draw_init(void) { (void)bgcolor(SCREENCOLOR); (void)bordercolor(BORDERCOLOR); + (void)textcolor(WINDOWCOLOR_FOCUS); screensize(&sizex, &sizey); ctk_draw_clear(0, sizey); } @@ -440,7 +441,6 @@ ctk_draw_clear(unsigned char y1, unsigned char y2) { unsigned char i; - (void)textcolor(BACKGROUNDCOLOR); for(i = y1; i < y2; ++i) { cclearxy(0, i, sizex); }