mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-06-15 08:29:35 +00:00
Removed redundant code
This commit is contained in:
parent
dae2be8c48
commit
bfad0d3bba
|
@ -540,10 +540,6 @@ static void set_window_name(bool mouse_grabbed)
|
||||||
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
|
const SDL_VideoInfo *vi = SDL_GetVideoInfo();
|
||||||
if (vi && vi->wm_available)
|
if (vi && vi->wm_available)
|
||||||
{
|
{
|
||||||
const char *title = PrefsFindString("title");
|
|
||||||
std::string s = title ? title : GetString(STR_WINDOW_TITLE);
|
|
||||||
if(grabbed)
|
|
||||||
s += GetString(grabbed);
|
|
||||||
//The icon name should stay the same
|
//The icon name should stay the same
|
||||||
SDL_WM_SetCaption(s.c_str(), GetString(STR_WINDOW_TITLE));
|
SDL_WM_SetCaption(s.c_str(), GetString(STR_WINDOW_TITLE));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user