| 192 | } |
| 193 | |
| 194 | SDL_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 | |
| 202 | SDL_Surface *forcergbasurface(SDL_Surface *os) |
| 203 | { |