mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-04-06 17:15:33 +02:00
SDL API renaming: SDL_surface.h
Fixes https://github.com/libsdl-org/SDL/issues/6884
This commit is contained in:
@@ -997,7 +997,7 @@ static SDL_Surface *SDLTest_LoadIcon(const char *file)
|
||||
|
||||
if (icon->format->palette) {
|
||||
/* Set the colorkey */
|
||||
SDL_SetColorKey(icon, 1, *((Uint8 *)icon->pixels));
|
||||
SDL_SetSurfaceColorKey(icon, 1, *((Uint8 *)icon->pixels));
|
||||
}
|
||||
|
||||
return icon;
|
||||
@@ -1297,7 +1297,7 @@ SDLTest_CommonInit(SDLTest_CommonState *state)
|
||||
SDL_Surface *icon = SDLTest_LoadIcon(state->window_icon);
|
||||
if (icon) {
|
||||
SDL_SetWindowIcon(state->windows[i], icon);
|
||||
SDL_FreeSurface(icon);
|
||||
SDL_DestroySurface(icon);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3213,7 +3213,7 @@ int SDLTest_DrawCharacter(SDL_Renderer *renderer, int x, int y, Uint32 c)
|
||||
|
||||
/* Convert temp surface into texture */
|
||||
cache->charTextureCache[ci] = SDL_CreateTextureFromSurface(renderer, character);
|
||||
SDL_FreeSurface(character);
|
||||
SDL_DestroySurface(character);
|
||||
|
||||
/*
|
||||
* Check pointer
|
||||
|
||||
Reference in New Issue
Block a user