Optimize redrawing, define keys separately

This commit is contained in:
2022-08-03 13:55:40 +02:00
parent 53239c3dde
commit 374cc9fa9a
4 changed files with 59 additions and 31 deletions

View File

@@ -44,6 +44,5 @@ bool FlipScreen( SDL_Surface * Screen ) {
printf("[E] Error updating screen.\n");
return false;
}
SDL_FillRect( Screen, &Screen->clip_rect, SDL_MapRGB( Screen->format, 0xFF, 0xFF, 0xFF ) );
return true;
}