diff --git a/src/render/SDL_render.c b/src/render/SDL_render.c index 44f293c05d..aeb3424b13 100644 --- a/src/render/SDL_render.c +++ b/src/render/SDL_render.c @@ -1918,7 +1918,7 @@ bool SDL_SetTexturePalette(SDL_Texture *texture, SDL_Palette *palette) } CHECK_PARAM(palette && palette->ncolors > (1 << SDL_BITSPERPIXEL(texture->format))) { - return SDL_SetError("SDL_SetSurfacePalette() passed a palette that doesn't match the surface format"); + return SDL_SetError("Palette doesn't match surface format"); } if (palette != texture->public_palette) { diff --git a/src/video/SDL_surface.c b/src/video/SDL_surface.c index 60221c88b7..f2cffae99f 100644 --- a/src/video/SDL_surface.c +++ b/src/video/SDL_surface.c @@ -421,7 +421,7 @@ bool SDL_SetSurfacePalette(SDL_Surface *surface, SDL_Palette *palette) } CHECK_PARAM(palette && palette->ncolors > (1 << SDL_BITSPERPIXEL(surface->format))) { - return SDL_SetError("SDL_SetSurfacePalette() passed a palette that doesn't match the surface format"); + return SDL_SetError("Palette doesn't match surface format"); } if (palette != surface->palette) {