diff src/video/win32/SDL_win32shape.c @ 4851:5624fb0190b5

Changed flags and positioning (for the fake-hiding) as Andreas recommended.
author Eli Gottlieb <eligottlieb@gmail.com>
date Sun, 15 Aug 2010 18:52:57 -0400
parents 14870d46ee2d
children c19c729eb201
line wrap: on
line diff
--- a/src/video/win32/SDL_win32shape.c	Sat Aug 14 20:29:51 2010 -0400
+++ b/src/video/win32/SDL_win32shape.c	Sun Aug 15 18:52:57 2010 -0400
@@ -32,7 +32,7 @@
     result->window = window;
     result->mode.mode = ShapeModeDefault;
     result->mode.parameters.binarizationCutoff = 1;
-    result->usershownflag = 0;
+    result->userx = result->usery = 0;
     result->driverdata = (SDL_ShapeData*)SDL_malloc(sizeof(SDL_ShapeData));
     ((SDL_ShapeData*)result->driverdata)->mask_tree = NULL;
     //Put some driver-data here.
@@ -101,7 +101,9 @@
     if(data->mask_tree != NULL)
         SDL_FreeShapeTree(&data->mask_tree);
     
-    window->shaper->usershownflag |= window->flags & SDL_WINDOW_SHOWN;
+    window->shaper->userx = window->x;
+    window->shaper->usery = window->y;
+    SDL_SetWindowPosition(window,-1000,-1000);
     
     return 0;
 }