- 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.
This commit is contained in:
parent
091483c150
commit
1d1f3a23af
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user