Put the app name after filename in the window title

This commit is contained in:
Chris Robinson
2017-05-07 04:29:18 -07:00
parent d9d2e73228
commit 5308ea7e2a
+1 -1
View File
@@ -1193,7 +1193,7 @@ void MovieState::setTitle(SDL_Window *window)
auto fpos = ((pos1 == std::string::npos) ? pos2 :
(pos2 == std::string::npos) ? pos1 :
std::max(pos1, pos2)) + 1;
SDL_SetWindowTitle(window, (AppName+" - "+mFilename.substr(fpos)).c_str());
SDL_SetWindowTitle(window, (mFilename.substr(fpos)+" - "+AppName).c_str());
}
double MovieState::getClock()