1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-17 16:39:42 +01:00

Fix overdraw bug in tower background

This could happen if you held down ACTION in the credits, looks like the
background doesn't keep up for some reason. That's another bug to fix,
but at least I can fix this overdraw.
This commit is contained in:
Misa 2020-05-02 12:32:20 -07:00 committed by Ethan Lee
parent 69b3a5dff2
commit 45fecf71b2

View file

@ -2379,6 +2379,7 @@ void Graphics::drawtowerspikes()
void Graphics::drawtowerbackground() void Graphics::drawtowerbackground()
{ {
FillRect(backBuffer, 0x000000);
SDL_BlitSurface(towerbuffer, NULL, towerbuffer_lerp, NULL); SDL_BlitSurface(towerbuffer, NULL, towerbuffer_lerp, NULL);
ScrollSurface(towerbuffer_lerp, 0, lerp(0, -map.bscroll)); ScrollSurface(towerbuffer_lerp, 0, lerp(0, -map.bscroll));
SDL_BlitSurface(towerbuffer_lerp,NULL, backBuffer,NULL); SDL_BlitSurface(towerbuffer_lerp,NULL, backBuffer,NULL);