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

Fix flickering when holding down ACTION in credits scroll

The solution is to draw another row of incoming textures. And also just
draw another row of textures when the background needs to be redrawn,
otherwise it'll flicker when the color changes while you're holding down
ACTION.
This commit is contained in:
Misa 2020-05-02 13:21:42 -07:00 committed by Ethan Lee
parent 1e81aef58a
commit 349702c92c

View file

@ -2403,7 +2403,7 @@ void Graphics::updatetowerbackground()
{
int off = map.scrolldir == 0 ? 0 : map.bscroll;
//Draw the whole thing; needed for every colour cycle!
for (int j = 0; j < 31; j++)
for (int j = 0; j < 32; j++)
{
for (int i = 0; i < 40; i++)
{
@ -2436,6 +2436,8 @@ void Graphics::updatetowerbackground()
drawtowertile3(i * 8, 30*8 - (map.bypos % 8) - map.bscroll, temp, map.colstate);
temp = map.tower.backat(i, 31, map.bypos);
drawtowertile3(i * 8, 31*8 - (map.bypos % 8) - map.bscroll, temp, map.colstate);
temp = map.tower.backat(i, 32, map.bypos);
drawtowertile3(i * 8, 32*8 - (map.bypos % 8) - map.bscroll, temp, map.colstate);
}
}
}