mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-26 07:48:42 +00:00
Remove depth field from SDL_CreateRGBSurfaceWithFormat and SDL_Create… (#6685)
* Remove depth field from SDL_CreateRGBSurfaceWithFormat and SDL_CreateRGBSurfaceWithFormatFrom * Removed unused 'flags' parameter from SDL_CreateRGBSurface and SDL_CreateRGBSurfaceWithFormat * Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
This commit is contained in:
parent
6873082c34
commit
fc4fc5295f
30 changed files with 95 additions and 109 deletions
|
|
@ -343,7 +343,7 @@ initializeTexture()
|
|||
&Bmask, &Amask);
|
||||
/* Create surface that will hold pixels passed into OpenGL */
|
||||
bmp_surface_rgba8888 =
|
||||
SDL_CreateRGBSurface(0, bmp_surface->w, bmp_surface->h, bpp, Rmask,
|
||||
SDL_CreateRGBSurface(bmp_surface->w, bmp_surface->h, bpp, Rmask,
|
||||
Gmask, Bmask, Amask);
|
||||
/* Blit to this surface, effectively converting the format */
|
||||
SDL_BlitSurface(bmp_surface, NULL, bmp_surface_rgba8888, NULL);
|
||||
|
|
|
|||
|
|
@ -178,7 +178,7 @@ loadFont(void)
|
|||
SDL_PixelFormatEnumToMasks(format, &bpp, &Rmask, &Gmask, &Bmask,
|
||||
&Amask);
|
||||
SDL_Surface *converted =
|
||||
SDL_CreateRGBSurface(0, surface->w, surface->h, bpp, Rmask, Gmask,
|
||||
SDL_CreateRGBSurface(surface->w, surface->h, bpp, Rmask, Gmask,
|
||||
Bmask, Amask);
|
||||
SDL_BlitSurface(surface, NULL, converted, NULL);
|
||||
/* create our texture */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue