mirror of https://github.com/snes9xgit/snes9x.git
Make S9xSetInfoString own its string.
This commit is contained in:
parent
dc3664de17
commit
a32d391483
5
gfx.cpp
5
gfx.cpp
|
@ -1741,9 +1741,12 @@ void S9xReRefresh (void)
|
|||
|
||||
void S9xSetInfoString (const char *string)
|
||||
{
|
||||
static std::string info_string;
|
||||
|
||||
if (Settings.InitialInfoStringTimeout > 0)
|
||||
{
|
||||
GFX.InfoString = string;
|
||||
info_string = string;
|
||||
GFX.InfoString = info_string.c_str();
|
||||
GFX.InfoStringTimeout = Settings.InitialInfoStringTimeout;
|
||||
S9xReRefresh();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue