From 186d67d6013809bdb5c5a5c76c73b70b4de5c0c2 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Tue, 17 Sep 2013 13:47:33 +0200 Subject: [PATCH] avoid unnecessary call to spiceterm_clear_xy --- spiceterm.c | 2 +- spiceterm.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spiceterm.c b/spiceterm.c index 31f719f..155c7bc 100644 --- a/spiceterm.c +++ b/spiceterm.c @@ -539,7 +539,7 @@ spiceterm_set_alternate_buffer(spiceTerm *vt, int on_off) /* clear screen */ for (y = 0; y <= vt->height; y++) { for (x = 0; x < vt->width; x++) { - spiceterm_clear_xy(vt, x, y); + // spiceterm_clear_xy(vt, x, y); } } diff --git a/spiceterm.h b/spiceterm.h index 0fb3f3c..c3fa403 100644 --- a/spiceterm.h +++ b/spiceterm.h @@ -20,7 +20,7 @@ typedef struct TextCell { TextAttributes attrib; } TextCell; -#define COMMANDS_SIZE 1024 +#define COMMANDS_SIZE (1024*10) #define MAX_HEIGHT 2048 #define MAX_WIDTH 2048