Added SDL_SetWindowPosition() call to SDL_SetWindowShape(), going to see what this does on Windows.
This commit is contained in:
parent
25775cdb23
commit
0a86be6abb
2 changed files with 4 additions and 3 deletions
|
@ -240,6 +240,7 @@ SDL_SetWindowShape(SDL_Window *window,SDL_Surface *shape,SDL_WindowShapeMode *sh
|
|||
result = window->display->device->shape_driver.SetWindowShape(window->shaper,shape,shapeMode);
|
||||
window->shaper->hasshape = SDL_TRUE;
|
||||
if((window->shaper->usershownflag & SDL_WINDOW_SHOWN) == SDL_WINDOW_SHOWN) {
|
||||
SDL_SetWindowPosition(window,window->x,window->y);
|
||||
SDL_ShowWindow(window);
|
||||
window->shaper->usershownflag &= !SDL_WINDOW_SHOWN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue