From f33cbfbe628e8f439f9ecf3677ca8d941af24334 Mon Sep 17 00:00:00 2001 From: Misa Date: Wed, 29 Apr 2020 11:15:23 -0700 Subject: [PATCH] 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. --- desktop_version/src/editor.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 48d3d0c6..2cf52145 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -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);