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

Fix editor menu being drawn on top of editor with BGs disabled

Previously, if you had backgrounds disabled in accessibility options,
and went to the editor and opened up the editor menu, it would be drawn
straight on top of what was already there in the editor instead of being
drawn on top of black. So now it's drawn on top of black.
This commit is contained in:
Misa 2020-04-29 11:15:23 -07:00 committed by Ethan Lee
parent e92a21cf8a
commit f33cbfbe62

View file

@ -3008,7 +3008,14 @@ void editorrender()
}
else if(ed.settingsmod)
{
if(!game.colourblindmode) graphics.drawtowerbackgroundsolo();
if(!game.colourblindmode)
{
graphics.drawtowerbackgroundsolo();
}
else
{
FillRect(graphics.backBuffer, 0, 0, 320, 240, 0x00000000);
}
int tr = map.r - (help.glow / 4) - int(fRandom() * 4);
int tg = map.g - (help.glow / 4) - int(fRandom() * 4);