Mercurial > sdl-ios-xcode
comparison src/video/SDL_shape.c @ 4856:1ff5dfaafdc8
Condensed flag-setting code and put parantheses in the appropriate places. It was that, in the end.
author | egottlieb |
---|---|
date | Mon, 16 Aug 2010 01:17:19 -0400 |
parents | 6d4d6605a0d3 |
children | 8f1994e8d886 |
comparison
equal
deleted
inserted
replaced
4855:6d4d6605a0d3 | 4856:1ff5dfaafdc8 |
---|---|
31 #include "SDL_shape_internals.h" | 31 #include "SDL_shape_internals.h" |
32 | 32 |
33 SDL_Window* | 33 SDL_Window* |
34 SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) { | 34 SDL_CreateShapedWindow(const char *title,unsigned int x,unsigned int y,unsigned int w,unsigned int h,Uint32 flags) { |
35 SDL_Window *result = NULL; | 35 SDL_Window *result = NULL; |
36 flags |= SDL_WINDOW_BORDERLESS; | 36 result = SDL_CreateWindow(title,x,y,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /*& (~SDL_WINDOW_SHOWN)*/); |
37 flags &= (~SDL_WINDOW_RESIZABLE); | |
38 flags &= (~SDL_WINDOW_FULLSCREEN); | |
39 //flags &= (~SDL_WINDOW_SHOWN); | |
40 result = SDL_CreateWindow(title,x,y,w,h,flags | SDL_WINDOW_BORDERLESS & ~SDL_WINDOW_FULLSCREEN & ~SDL_WINDOW_RESIZABLE); | |
41 if(result != NULL) { | 37 if(result != NULL) { |
42 result->shaper = result->display->device->shape_driver.CreateShaper(result); | 38 result->shaper = result->display->device->shape_driver.CreateShaper(result); |
43 if(result->shaper != NULL) { | 39 if(result->shaper != NULL) { |
44 result->shaper->userx = x; | 40 result->shaper->userx = x; |
45 result->shaper->usery = y; | 41 result->shaper->usery = y; |