Mercurial > sdl-ios-xcode
diff src/video/x11/SDL_x11window.c @ 4782:b6930aefd008
Finished X11 shaped-window functionality and removed ellipse+polygon rendering.
author | Eli Gottlieb <eligottlieb@gmail.com> |
---|---|
date | Wed, 30 Jun 2010 16:19:44 -0400 |
parents | f7b03b6838cb |
children | 7b1d35d98294 |
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c Mon Jun 21 23:08:10 2010 -0400 +++ b/src/video/x11/SDL_x11window.c Wed Jun 30 16:19:44 2010 -0400 @@ -28,6 +28,7 @@ #include "SDL_x11video.h" #include "SDL_x11mouse.h" #include "SDL_x11gamma.h" +#include "SDL_x11shape.h" #include "../Xext/extensions/StdCmap.h" #ifdef SDL_VIDEO_DRIVER_PANDORA @@ -897,6 +898,8 @@ SDL_WindowData *data = (SDL_WindowData *) window->driverdata; Display *display = data->videodata->display; + if(SDL_IsShapedWindow(window)) + X11_ResizeWindowShape(window); XResizeWindow(display, data->xwindow, window->w, window->h); }