mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 02:08:27 +00:00
SDL API renaming: SDL_surface.h
Fixes https://github.com/libsdl-org/SDL/issues/6884
This commit is contained in:
parent
2db699f48e
commit
cc0296c934
47 changed files with 416 additions and 362 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue