mirror of
https://github.com/encounter/SDL.git
synced 2025-12-17 08:57:01 +00:00
DirectFB: use SDL_malloc
This commit is contained in:
@@ -34,7 +34,7 @@ DirectFB_CreateShaper(SDL_Window* window) {
|
|||||||
SDL_ShapeData* data;
|
SDL_ShapeData* data;
|
||||||
int resized_properly;
|
int resized_properly;
|
||||||
|
|
||||||
result = malloc(sizeof(SDL_WindowShaper));
|
result = SDL_malloc(sizeof(SDL_WindowShaper));
|
||||||
result->window = window;
|
result->window = window;
|
||||||
result->mode.mode = ShapeModeDefault;
|
result->mode.mode = ShapeModeDefault;
|
||||||
result->mode.parameters.binarizationCutoff = 1;
|
result->mode.parameters.binarizationCutoff = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user