mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
GL plugin now Updates it's title bar in Linux. No gui also works, change it in SConscript in Linux if you want to use that one instead
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@148 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -55,7 +55,11 @@ void OpenGL_SetWindowText(const char *text)
|
||||
#ifdef _WIN32
|
||||
SetWindowText(EmuWindow::GetWnd(), text);
|
||||
#else
|
||||
// TODO
|
||||
/**
|
||||
* Tell X to ask the window manager to set the window title. (X
|
||||
* itself doesn't provide window title functionality.)
|
||||
*/
|
||||
XStoreName(GLWin.dpy, GLWin.win, text);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -89,7 +93,9 @@ void UpdateFPSDisplay(const char *text)
|
||||
SetWindowText(EmuWindow::GetWnd(), temp);
|
||||
OpenGL_SetWindowText(temp);
|
||||
#else
|
||||
//TODO
|
||||
char temp[512];
|
||||
sprintf(temp, "SVN %s: %s", "Linux", text); //TODO: Set to svn rev //
|
||||
OpenGL_SetWindowText(temp);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user