Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Condensed flag-setting code and put parantheses in the appropriate pl…
Browse files Browse the repository at this point in the history
…aces. It was that, in the end.
  • Loading branch information
egottlieb committed Aug 16, 2010
1 parent 952d5f2 commit 7733d4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions src/video/SDL_shape.c
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion src/video/win32/SDL_win32shape.c
Expand Up @@ -40,7 +40,7 @@ Win32_CreateShaper(SDL_Window * window) {
resized_properly = Win32_ResizeWindowShape(window);
if (resized_properly != 0)
return NULL;

return result;
}

Expand Down

0 comments on commit 7733d4f

Please sign in to comment.