Mercurial > sdl-ios-xcode
diff src/video/SDL_shape.c @ 4856:1ff5dfaafdc8
Condensed flag-setting code and put parantheses in the appropriate places. It was that, in the end.
author | egottlieb |
---|---|
date | Mon, 16 Aug 2010 01:17:19 -0400 |
parents | 6d4d6605a0d3 |
children | 8f1994e8d886 |
line wrap: on
line diff
--- a/src/video/SDL_shape.c Sun Aug 15 23:57:50 2010 -0400 +++ b/src/video/SDL_shape.c Mon Aug 16 01:17:19 2010 -0400 @@ -33,11 +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; - 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); + result = SDL_CreateWindow(title,x,y,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) {