diff src/video/x11/SDL_x11window.c @ 4937:24d44c7c4c63

Don't crash when resizing non-shaped windows
author Sam Lantinga <slouken@libsdl.org>
date Fri, 31 Dec 2010 08:50:06 -0800
parents 50d0bff24d81
children 5e3291605ad0
line wrap: on
line diff
--- a/src/video/x11/SDL_x11window.c	Fri Dec 31 08:42:47 2010 -0800
+++ b/src/video/x11/SDL_x11window.c	Fri Dec 31 08:50:06 2010 -0800
@@ -942,7 +942,7 @@
     SDL_WindowData *data = (SDL_WindowData *) window->driverdata;
     Display *display = data->videodata->display;
 
-    if(SDL_IsShapedWindow(window))
+    if (SDL_IsShapedWindow(window))
         X11_ResizeWindowShape(window);
     XResizeWindow(display, data->xwindow, window->w, window->h);
 }