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

Function forcergbsurface

source/src/texture.cpp:194–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192}
193
194SDL_Surface *forcergbsurface(SDL_Surface *os)
195{
196 SDL_Surface *ns = SDL_CreateRGBSurface(SDL_SWSURFACE, os->w, os->h, 24, RGBMASKS);
197 if(ns) SDL_BlitSurface(os, NULL, ns, NULL);
198 SDL_FreeSurface(os);
199 return ns;
200}
201
202SDL_Surface *forcergbasurface(SDL_Surface *os)
203{

Callers 1

fixsurfaceformatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected