aboutsummaryrefslogtreecommitdiffstats
path: root/fb-gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'fb-gui.c')
-rw-r--r--fb-gui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fb-gui.c b/fb-gui.c
index 2d04685..f49d451 100644
--- a/fb-gui.c
+++ b/fb-gui.c
@@ -231,6 +231,7 @@ void shadow_init(void)
sheight = fb_var.yres;
shadow = malloc(sizeof(unsigned char*) * sheight);
sdirty = malloc(sizeof(unsigned int) * sheight);
+ memset(sdirty,0, sizeof(unsigned int) * sheight);
for (i = 0; i < sheight; i++)
shadow[i] = malloc(swidth*3);
shadow_clear();