comparison 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
comparison
equal deleted inserted replaced
4794:e562160a873f 4795:6f0bc179771c
32 if (SDL_X11_HAVE_XSHAPE) { /* Make sure X server supports it. */ 32 if (SDL_X11_HAVE_XSHAPE) { /* Make sure X server supports it. */
33 result = malloc(sizeof(SDL_WindowShaper)); 33 result = malloc(sizeof(SDL_WindowShaper));
34 result->window = window; 34 result->window = window;
35 result->alphacutoff = 0; 35 result->alphacutoff = 0;
36 result->usershownflag = 0; 36 result->usershownflag = 0;
37 result->driverdata = malloc(sizeof(SDL_ShapeData)); 37 SDL_ShapeData* data = malloc(sizeof(SDL_ShapeData));
38 result->driverdata = data;
39 data->bitmapsize = 0;
40 data->bitmap = NULL;
38 window->shaper = result; 41 window->shaper = result;
39 int resized_properly = X11_ResizeWindowShape(window); 42 int resized_properly = X11_ResizeWindowShape(window);
40 assert(resized_properly == 0); 43 assert(resized_properly == 0);
41 } 44 }
42 #endif 45 #endif