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

Commit

Permalink
Set flag bits *exactly* as Andreas showed me in his screenshot. This …
Browse files Browse the repository at this point in the history
…shouldn't be different, but what do I know about C's order of operations?
  • Loading branch information
Eli Gottlieb committed Aug 16, 2010
1 parent c6f418c commit 952d5f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/video/SDL_shape.c
Expand Up @@ -32,7 +32,12 @@

SDL_Window*
SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) {
SDL_Window *result = SDL_CreateWindow(title,x,y,w,h,flags | SDL_WINDOW_BORDERLESS & ~SDL_WINDOW_FULLSCREEN & ~SDL_WINDOW_RESIZABLE);
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);
if(result != NULL) {
result->shaper = result->display->device->shape_driver.CreateShaper(result);
if(result->shaper != NULL) {
Expand Down

0 comments on commit 952d5f2

Please sign in to comment.