Some blocks are now touchable

This commit is contained in:
2022-08-01 23:55:56 +02:00
parent 67b8bff938
commit f4973bdf84
4 changed files with 59 additions and 51 deletions

View File

@ -1,3 +1,4 @@
#include <stdbool.h>
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
@ -37,3 +38,12 @@ SDL_Surface * ScreenSet ( int Width, int Height, int Bits, SDL_Surface * Screen
);
return Screen;
}
bool FlipScreen( SDL_Surface * Screen ) {
if ( SDL_Flip( Screen ) != 0 ) {
printf("[E] Error updating screen.\n");
return false;
}
SDL_FillRect( Screen, &Screen->clip_rect, SDL_MapRGB( Screen->format, 0xFF, 0xFF, 0xFF ) );
return true;
}