Condensed flag-setting code and put parantheses in the appropriate places. It was that, in the end.

This commit is contained in:
egottlieb 2010-08-16 01:17:19 -04:00
parent 80d2377e78
commit 9f396e2964
2 changed files with 2 additions and 6 deletions

View File

@ -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) {

View File

@ -40,7 +40,7 @@ Win32_CreateShaper(SDL_Window * window) {
resized_properly = Win32_ResizeWindowShape(window);
if (resized_properly != 0)
return NULL;
return result;
}