mirror of
https://github.com/joel16/SDL2.git
synced 2024-12-05 01:46:25 +00:00
Condensed flag-setting code and put parantheses in the appropriate places. It was that, in the end.
This commit is contained in:
parent
80d2377e78
commit
9f396e2964
@ -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) {
|
||||
|
@ -40,7 +40,7 @@ Win32_CreateShaper(SDL_Window * window) {
|
||||
resized_properly = Win32_ResizeWindowShape(window);
|
||||
if (resized_properly != 0)
|
||||
return NULL;
|
||||
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user