Change all surface-clearing FillRect()s to use ClearSurface()

ClearSurface() is less verbose than doing it the old way, and also
conveys intent clearer. Plus, some of these FillRect()s had hardcoded
width and height values, whereas ClearSurface() doesn't - meaning this
change also has better future-proofing, in case the widths and heights
of the surfaces involved change in the future.
This commit is contained in:
Misa
2021-02-25 15:37:03 -08:00
committed by Ethan Lee
parent e545c89b5e
commit 38d5664601
7 changed files with 30 additions and 30 deletions

View File

@@ -2316,7 +2316,7 @@ static void mapmenuactionpress(void)
//Kill contents of offset render buffer, since we do that for some reason.
//This fixes an apparent frame flicker.
FillRect(graphics.tempBuffer, 0x000000);
ClearSurface(graphics.tempBuffer);
graphics.fademode = 2;
music.fadeout();
map.nexttowercolour();