mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user