mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 09:28:15 +03: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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user