From fcbf4adbecb6c38060f39733f9c7478accca2253 Mon Sep 17 00:00:00 2001 From: feos Date: Mon, 18 Apr 2016 19:39:24 +0300 Subject: [PATCH] lua: remove bg color from gui.text function, since it's always a black halo. --- .../tools/Lua/Libraries/EmuLuaLibrary.Gui.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs index f00d9cff7e..9f47c3e897 100644 --- a/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs +++ b/BizHawk.Client.EmuHawk/tools/Lua/Libraries/EmuLuaLibrary.Gui.cs @@ -661,14 +661,13 @@ namespace BizHawk.Client.EmuHawk [LuaMethodAttributes( "text", - "Displays the given text on the screen at the given coordinates. Optional Foreground and background colors. The optional anchor flag anchors the text to one of the four corners. Anchor flag parameters: topleft, topright, bottomleft, bottomright" + "Displays the given text on the screen at the given coordinates. Optional Foreground color. The optional anchor flag anchors the text to one of the four corners. Anchor flag parameters: topleft, topright, bottomleft, bottomright" )] public void Text( int x, int y, string message, Color? forecolor = null, - Color? background = null, string anchor = null) { var a = 0; @@ -701,7 +700,7 @@ namespace BizHawk.Client.EmuHawk y -= Global.Emulator.CoreComm.ScreenLogicalOffsetY; } - GlobalWin.OSD.AddGUIText(message, x, y, background ?? Color.Black, forecolor ?? Color.White, a); + GlobalWin.OSD.AddGUIText(message, x, y, Color.Black, forecolor ?? Color.White, a); } [LuaMethodAttributes(