diff src/video/SDL_shape.c @ 4860:8f1994e8d886

Create all shaped windows at -1000,-1000 and save the real coordinates.
author egottlieb
date Tue, 17 Aug 2010 01:11:11 -0400
parents 1ff5dfaafdc8
children b67815cf9f25
line wrap: on
line diff
--- a/src/video/SDL_shape.c	Mon Aug 16 14:01:00 2010 -0400
+++ b/src/video/SDL_shape.c	Tue Aug 17 01:11:11 2010 -0400
@@ -33,7 +33,7 @@
 SDL_Window*
 SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
     SDL_Window *result = NULL;
-    result = SDL_CreateWindow(title,x,y,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /*& (~SDL_WINDOW_SHOWN)*/);
+    result = SDL_CreateWindow(title,-1000,-1000,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /*& (~SDL_WINDOW_SHOWN)*/);
     if(result != NULL) {
         result->shaper = result->display->device->shape_driver.CreateShaper(result);
         if(result->shaper != NULL) {