Commit 9f396e29 authored by egottlieb's avatar egottlieb

Condensed flag-setting code and put parantheses in the appropriate places. It...

Condensed flag-setting code and put parantheses in the appropriate places.  It was that, in the end.
parent 80d2377e
...@@ -33,11 +33,7 @@ ...@@ -33,11 +33,7 @@
SDL_Window* SDL_Window*
SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) { SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
SDL_Window *result = NULL; SDL_Window *result = NULL;
flags |= SDL_WINDOW_BORDERLESS; result = SDL_CreateWindow(title,x,y,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /*& (~SDL_WINDOW_SHOWN)*/);
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) { if(result != NULL) {
result->shaper = result->display->device->shape_driver.CreateShaper(result); result->shaper = result->display->device->shape_driver.CreateShaper(result);
if(result->shaper != NULL) { if(result->shaper != NULL) {
......
...@@ -40,7 +40,7 @@ Win32_CreateShaper(SDL_Window * window) { ...@@ -40,7 +40,7 @@ Win32_CreateShaper(SDL_Window * window) {
resized_properly = Win32_ResizeWindowShape(window); resized_properly = Win32_ResizeWindowShape(window);
if (resized_properly != 0) if (resized_properly != 0)
return NULL; return NULL;
return result; return result;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment