Mercurial > sdl-ios-xcode
comparison src/video/x11/SDL_x11shape.c @ 4802:f14a8c05f5bb
Minor bugfixes. testshape now draws a shaped window with bizarre, pixellated gashes of transparency across it, and in doing so seems to hog a system resource and slow the rest of the video system down.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Sun, 18 Jul 2010 23:05:40 -0400 |
parents | 6f0bc179771c |
children | c9eb95f29770 |
comparison
equal
deleted
inserted
replaced
4801:506a9165491b | 4802:f14a8c05f5bb |
---|---|
64 SDL_SetError("Could not allocate memory for shaped-window bitmap."); | 64 SDL_SetError("Could not allocate memory for shaped-window bitmap."); |
65 return -1; | 65 return -1; |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 window->shaper->usershownflag = window->flags & SDL_WINDOW_SHOWN; | 69 window->shaper->usershownflag |= window->flags & SDL_WINDOW_SHOWN; |
70 | 70 |
71 return 0; | 71 return 0; |
72 } | 72 } |
73 | 73 |
74 int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) { | 74 int X11_SetWindowShape(SDL_WindowShaper *shaper,SDL_Surface *shape,SDL_WindowShapeMode *shapeMode) { |