diff options
Diffstat (limited to 'screen.c')
| -rw-r--r-- | screen.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -35,7 +35,7 @@ bool InitScreen ( void ) { } gScreenSurface = SDL_GetWindowSurface( gWindow ); - ClearScreen(); + SDL_FillRect( gScreenSurface, NULL, SDL_MapRGB( gScreenSurface->format, 0x00, 0x00, 0x00 ) ); ballSurface = LoadSurface( "ball.bmp" ); leftPaddleSurface = LoadSurface( "paddle.bmp" ); @@ -65,8 +65,3 @@ void Draw ( const struct moveable_t m, SDL_Surface * const surface ) { printf( "Error with draw! SDL Error: %s\n", SDL_GetError() ); } } - -void ClearScreen( void ) { - SDL_FillRect( gScreenSurface, NULL, SDL_MapRGB( gScreenSurface->format, 0x00, 0x00, 0x00 ) ); - SDL_UpdateWindowSurface( gWindow ); -} |
