mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 10:09:43 +01:00
Fix roomname being continuously drawn on top of itself
This is only noticeable if you have a font with translucent pixels, like I do. But it gets really noticeable really quickly with this over-30-FPS patch because the render functions are continuously called every delta-timestep. To prevent this, just fill the backbuffer with black before rendering anything.
This commit is contained in:
parent
c289128693
commit
69b3a5dff2
1 changed files with 3 additions and 0 deletions
|
@ -1627,6 +1627,8 @@ void gamerender()
|
|||
|
||||
void maprender()
|
||||
{
|
||||
FillRect(graphics.backBuffer, 0x000000);
|
||||
|
||||
//draw screen alliteration
|
||||
//Roomname:
|
||||
int temp = map.area(game.roomx, game.roomy);
|
||||
|
@ -2392,6 +2394,7 @@ void maprender()
|
|||
|
||||
void teleporterrender()
|
||||
{
|
||||
FillRect(graphics.backBuffer, 0x000000);
|
||||
int tempx;
|
||||
int tempy;
|
||||
//draw screen alliteration
|
||||
|
|
Loading…
Reference in a new issue