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:
Sam Lantinga
2023-11-22 11:46:36 -08:00
parent 45938bbfa5
commit 81fc7ded78
30 changed files with 34 additions and 1081 deletions

View File

@@ -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);
}