mirror of
https://gitlab.com/octospacc/BloccSpacc
synced 2025-06-05 21:39:15 +02:00
Some blocks are now touchable
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user