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