* Clears all the contents out of the internal buffer. */
| 215 | * Clears all the contents out of the internal buffer. |
| 216 | */ |
| 217 | void Screen::clear() |
| 218 | { |
| 219 | _surface->clear(); |
| 220 | if (_screen->flags & SDL_SWSURFACE) memset(_screen->pixels, 0, _screen->h*_screen->pitch); |
| 221 | else SDL_FillRect(_screen, &_clear, 0); |
| 222 | } |
| 223 | |
| 224 | /** |
| 225 | * Changes the 8bpp palette used to render the screen's contents. |
no outgoing calls
no test coverage detected