diff src/video/x11/SDL_x11shape.c @ 4795:6f0bc179771c

Numerous bug fixes that keep testeyes from crashing and dying.
author Eli Gottlieb <eligottlieb@gmail.com>
date Wed, 14 Jul 2010 00:49:28 -0400
parents e562160a873f
children f14a8c05f5bb
line wrap: on
line diff
--- a/src/video/x11/SDL_x11shape.c	Tue Jul 13 02:43:49 2010 -0400
+++ b/src/video/x11/SDL_x11shape.c	Wed Jul 14 00:49:28 2010 -0400
@@ -34,7 +34,10 @@
 		result->window = window;
 		result->alphacutoff = 0;
 		result->usershownflag = 0;
-		result->driverdata = malloc(sizeof(SDL_ShapeData));
+		SDL_ShapeData* data = malloc(sizeof(SDL_ShapeData));
+		result->driverdata = data;
+		data->bitmapsize = 0;
+		data->bitmap = NULL;
 		window->shaper = result;
 		int resized_properly = X11_ResizeWindowShape(window);
 		assert(resized_properly == 0);