mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 06:45:59 +00:00
Removed the window shape API for SDL 3.0
Fixes https://github.com/libsdl-org/SDL/issues/6654 Fixes https://github.com/libsdl-org/SDL/issues/6897
This commit is contained in:
@@ -33,7 +33,6 @@
|
||||
|
||||
#include "SDL_windowsvideo.h"
|
||||
#include "SDL_windowswindow.h"
|
||||
#include "SDL_windowsshape.h"
|
||||
|
||||
/* Dropfile support */
|
||||
#include <shellapi.h>
|
||||
@@ -1230,18 +1229,6 @@ void WIN_SetWindowKeyboardGrab(SDL_VideoDevice *_this, SDL_Window *window, SDL_b
|
||||
|
||||
void WIN_DestroyWindow(SDL_VideoDevice *_this, SDL_Window *window)
|
||||
{
|
||||
if (window->shaper) {
|
||||
SDL_ShapeData *shapedata = (SDL_ShapeData *)window->shaper->driverdata;
|
||||
if (shapedata) {
|
||||
if (shapedata->mask_tree) {
|
||||
SDL_FreeShapeTree(&shapedata->mask_tree);
|
||||
}
|
||||
SDL_free(shapedata);
|
||||
}
|
||||
SDL_free(window->shaper);
|
||||
window->shaper = NULL;
|
||||
}
|
||||
|
||||
CleanupWindowData(_this, window);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user