mirror of https://github.com/BOINC/boinc.git
Add WU name to graphics window title.
TODO: add app_version_num to window title. David or Rom, could you add app_version_num to struct APP_INIT_DATA? svn path=/trunk/boinc/; revision=8658
This commit is contained in:
parent
a0f2363670
commit
fb2e676440
|
@ -136,6 +136,14 @@ static void make_new_window() {
|
|||
APP_INIT_DATA aid;
|
||||
boinc_get_init_data(aid);
|
||||
if (!strlen(aid.app_name)) strcpy(aid.app_name, "BOINC Application");
|
||||
char window_title[256];
|
||||
// keep following consistent with similar code in x_opengl.C
|
||||
// TODO: add app_version_num to window title. David or Rom, could
|
||||
// you add app_version_num to struct APP_INIT_DATA?
|
||||
//
|
||||
snprintf(window_title, 256,
|
||||
"%s [workunit: %s]", aid.app_name, aid.wu_name
|
||||
);
|
||||
hWnd = CreateWindowEx(dwExStyle, BOINC_WINDOW_CLASS_NAME, aid.app_name,
|
||||
dwStyle|WS_CLIPSIBLINGS|WS_CLIPCHILDREN, WindowRect.left, WindowRect.top,
|
||||
WindowRect.right-WindowRect.left,WindowRect.bottom-WindowRect.top,
|
||||
|
|
|
@ -153,7 +153,15 @@ static void make_new_window(int mode) {
|
|||
}
|
||||
|
||||
app_debug_msg("make_new_window(): now calling glutCreateWindow(%s)...\n", aid.app_name);
|
||||
win = glutCreateWindow(aid.app_name);
|
||||
char window_title[256];
|
||||
// keep following consistent with similar code in windows_opengl.C
|
||||
// TODO: add app_version_num to window title. David or Rom, could
|
||||
// you add app_version_num to struct APP_INIT_DATA?
|
||||
//
|
||||
snprintf(window_title, 256,
|
||||
"%s version [workunit: %s]", aid.app_name, aid.wu_name
|
||||
);
|
||||
win = glutCreateWindow(window_title);
|
||||
app_debug_msg("glutCreateWindow() succeeded. win = %d\n", win);
|
||||
|
||||
// installing callbacks for the current window
|
||||
|
|
|
@ -13018,9 +13018,15 @@ Rom 11 Oct 2005 (HEAD, staging, stable, boinc_core_release)
|
|||
|
||||
Bruce 11 Oct 2005
|
||||
- Fix bug in cancel WU script
|
||||
- Add WU name to graphics window title.
|
||||
TODO: add app_version_num to window title.
|
||||
David or Rom, could you add app_version_num to struct APP_INIT_DATA?
|
||||
|
||||
html/
|
||||
ops/
|
||||
cancel_wu_action.php
|
||||
|
||||
api/
|
||||
x_opengl.C
|
||||
windows_opengl.C
|
||||
|
||||
|
|
Loading…
Reference in New Issue