Introduced a new parameter for ctk_draw_window() that indicates if drawing the window borders is required.
This allows to avoid unnecessary drawing of window borders on calls to ctk_window_redraw() which happen often in the web browser.
Several ctk_draw_window() implementaions don't make use of the new parameter yet.
diff --git a/contiki-c64/ctk/ctk-80col.c b/contiki-c64/ctk/ctk-80col.c
index 7f6b822..b1df7a4 100644
--- a/contiki-c64/ctk/ctk-80col.c
+++ b/contiki-c64/ctk/ctk-80col.c
@@ -30,7 +30,7 @@
*
* Author: Adam Dunkels <adam@sics.se>
*
- * $Id: ctk-80col.c,v 1.11 2004/12/27 22:04:30 oliverschmidt Exp $
+ * $Id: ctk-80col.c,v 1.12 2005/03/15 15:56:07 oliverschmidt Exp $
*/
#include "contiki.h"
@@ -873,7 +873,8 @@
/*-----------------------------------------------------------------------------------*/
static void
s_ctk_draw_window(struct ctk_window *window, unsigned char focus,
- unsigned char clipy1, unsigned char clipy2)
+ unsigned char clipy1, unsigned char clipy2,
+ unsigned char draw_borders)
{
unsigned char x, y;
unsigned char h;