# HG changeset patch # User Eli Gottlieb # Date 1281651435 14400 # Node ID 40b46225e3cfbe23cc278e9a84a7de2b759b9f1a # Parent 4f1573996a655773a96d0de4d170196eef7a55bd Added SDL_SetWindowPosition() call to SDL_SetWindowShape(), going to see what this does on Windows. diff -r 4f1573996a65 -r 40b46225e3cf src/video/SDL_shape.c --- a/src/video/SDL_shape.c Tue Aug 10 16:10:26 2010 -0400 +++ b/src/video/SDL_shape.c Thu Aug 12 18:17:15 2010 -0400 @@ -240,6 +240,7 @@ result = window->display->device->shape_driver.SetWindowShape(window->shaper,shape,shapeMode); window->shaper->hasshape = SDL_TRUE; if((window->shaper->usershownflag & SDL_WINDOW_SHOWN) == SDL_WINDOW_SHOWN) { + SDL_SetWindowPosition(window,window->x,window->y); SDL_ShowWindow(window); window->shaper->usershownflag &= !SDL_WINDOW_SHOWN; } diff -r 4f1573996a65 -r 40b46225e3cf src/video/win32/SDL_win32shape.c --- a/src/video/win32/SDL_win32shape.c Tue Aug 10 16:10:26 2010 -0400 +++ b/src/video/win32/SDL_win32shape.c Thu Aug 12 18:17:15 2010 -0400 @@ -105,11 +105,11 @@ /* * Set the new region mask for the window */ - mask_region = CreatePolyPolygonRgn(polygons,polygonVertexNumbers,num_rects,WINDING); + mask_region = CreatePolyPolygonRgn(polygons,polygonVertexNumbers,num_rects,WINDING); SetWindowRgn(((SDL_WindowData *)(shaper->window->driverdata))->hwnd, mask_region, TRUE); - SDL_free(polygons); - SDL_free(polygonVertexNumbers); + SDL_free(polygons); + SDL_free(polygonVertexNumbers); return 0; }