1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 10:09:43 +01:00

Fix overdraw at bottom/right screen edges with H/V warp BGs

There's still a problem in that the flickering that would lead to this
overdraw in the first place still exists. But at least if it'll flicker,
it'll flicker black and not overdraw.
This commit is contained in:
Misa 2020-05-02 12:15:52 -07:00 committed by Ethan Lee
parent 93d8220388
commit c289128693

View file

@ -1994,11 +1994,13 @@ void Graphics::drawbackground( int t )
} }
break; break;
case 3: //Warp zone (horizontal) case 3: //Warp zone (horizontal)
FillRect(backBuffer, 0x000000);
BlitSurfaceStandard(towerbuffer, NULL, towerbuffer_lerp, NULL); BlitSurfaceStandard(towerbuffer, NULL, towerbuffer_lerp, NULL);
ScrollSurface(towerbuffer_lerp, lerp(0, -3), 0); ScrollSurface(towerbuffer_lerp, lerp(0, -3), 0);
BlitSurfaceStandard(towerbuffer_lerp, NULL, backBuffer, NULL); BlitSurfaceStandard(towerbuffer_lerp, NULL, backBuffer, NULL);
break; break;
case 4: //Warp zone (vertical) case 4: //Warp zone (vertical)
FillRect(backBuffer, 0x000000);
SDL_BlitSurface(towerbuffer, NULL, towerbuffer_lerp, NULL); SDL_BlitSurface(towerbuffer, NULL, towerbuffer_lerp, NULL);
ScrollSurface(towerbuffer_lerp, 0, lerp(0, -3)); ScrollSurface(towerbuffer_lerp, 0, lerp(0, -3));
SDL_BlitSurface(towerbuffer_lerp,NULL, backBuffer,NULL); SDL_BlitSurface(towerbuffer_lerp,NULL, backBuffer,NULL);