MCPcopy Create free account
hub / github.com/assaultcube/AC / forcergbasurface

Function forcergbasurface

source/src/texture.cpp:202–212  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202SDL_Surface *forcergbasurface(SDL_Surface *os)
203{
204 SDL_Surface *ns = SDL_CreateRGBSurface(SDL_SWSURFACE, os->w, os->h, 32, RGBAMASKS);
205 if(ns)
206 {
207 SDL_SetSurfaceAlphaMod(os, SDL_ALPHA_OPAQUE);
208 SDL_BlitSurface(os, NULL, ns, NULL);
209 }
210 SDL_FreeSurface(os);
211 return ns;
212}
213
214bool checkgrayscale(SDL_Surface *s)
215{

Callers 1

fixsurfaceformatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected