Set flag bits *exactly* as Andreas showed me in his screenshot. This shouldn't be different, but what do I know about C's order of operations?
authorEli Gottlieb <eligottlieb@gmail.com>
Sun, 15 Aug 2010 23:57:50 -0400
changeset 4855 6d4d6605a0d3
parent 4854 661cb2f7c22a
child 4856 1ff5dfaafdc8
Set flag bits *exactly* as Andreas showed me in his screenshot. This shouldn't be different, but what do I know about C's order of operations?
src/video/SDL_shape.c
--- a/src/video/SDL_shape.c	Sun Aug 15 22:03:38 2010 -0400
+++ b/src/video/SDL_shape.c	Sun Aug 15 23:57:50 2010 -0400
@@ -32,7 +32,12 @@
 
 SDL_Window*
 SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
-    SDL_Window *result = SDL_CreateWindow(title,x,y,w,h,flags | SDL_WINDOW_BORDERLESS & ~SDL_WINDOW_FULLSCREEN & ~SDL_WINDOW_RESIZABLE);
+    SDL_Window *result = NULL;
+    flags |= SDL_WINDOW_BORDERLESS;
+    flags &= (~SDL_WINDOW_RESIZABLE);
+    flags &= (~SDL_WINDOW_FULLSCREEN);
+    //flags &= (~SDL_WINDOW_SHOWN);
+    result = SDL_CreateWindow(title,x,y,w,h,flags | SDL_WINDOW_BORDERLESS & ~SDL_WINDOW_FULLSCREEN & ~SDL_WINDOW_RESIZABLE);
     if(result != NULL) {
         result->shaper = result->display->device->shape_driver.CreateShaper(result);
         if(result->shaper != NULL) {