Mercurial > sdl-ios-xcode
comparison src/video/SDL_shape.c @ 4860:8f1994e8d886
Create all shaped windows at -1000,-1000 and save the real coordinates.
author | egottlieb |
---|---|
date | Tue, 17 Aug 2010 01:11:11 -0400 |
parents | 1ff5dfaafdc8 |
children | b67815cf9f25 |
comparison
equal
deleted
inserted
replaced
4859:91f4d4d5c395 | 4860:8f1994e8d886 |
---|---|
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 result = SDL_CreateWindow(title,x,y,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /*& (~SDL_WINDOW_SHOWN)*/); | 36 result = SDL_CreateWindow(title,-1000,-1000,w,h,(flags | SDL_WINDOW_BORDERLESS) & (~SDL_WINDOW_FULLSCREEN) & (~SDL_WINDOW_RESIZABLE) /*& (~SDL_WINDOW_SHOWN)*/); |
37 if(result != NULL) { | 37 if(result != NULL) { |
38 result->shaper = result->display->device->shape_driver.CreateShaper(result); | 38 result->shaper = result->display->device->shape_driver.CreateShaper(result); |
39 if(result->shaper != NULL) { | 39 if(result->shaper != NULL) { |
40 result->shaper->userx = x; | 40 result->shaper->userx = x; |
41 result->shaper->usery = y; | 41 result->shaper->usery = y; |