mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Fix delta rendering glitch when going to options from new Esc menu
Well this is a bit annoying. I can call graphics.updatetowerbackground() just fine, but I have to get at the title color update routine inside titlelogic(), which is hard-baked in. So I have to pull that code outside of the function, export it in the header, and then call it when I transition to TITLEMODE.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "Input.h"
|
||||
#include "Logic.h"
|
||||
#include "Script.h"
|
||||
|
||||
#include "MakeAndPlay.h"
|
||||
@@ -2094,6 +2095,10 @@ void mapmenuactionpress()
|
||||
game.gamestate = TITLEMODE;
|
||||
game.createmenu(Menu::graphicoptions);
|
||||
map.nexttowercolour();
|
||||
|
||||
// Fix delta rendering glitch
|
||||
graphics.updatetowerbackground();
|
||||
titleupdatetextcol();
|
||||
break;
|
||||
case 33:
|
||||
// Game options
|
||||
@@ -2101,6 +2106,10 @@ void mapmenuactionpress()
|
||||
game.gamestate = TITLEMODE;
|
||||
game.createmenu(Menu::options);
|
||||
map.nexttowercolour();
|
||||
|
||||
// Fix delta rendering glitch
|
||||
graphics.updatetowerbackground();
|
||||
titleupdatetextcol();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user