From d118641dcb7e62bb8959f4578ea4f322b2aac4b5 Mon Sep 17 00:00:00 2001 From: Bruce Allen Date: Sat, 10 Dec 2005 12:46:09 +0000 Subject: [PATCH] API: when app version number is shown in the title bar of a graphics window, print it in the same format at the client GUI, for example 4.29 rather than existing 429. This is for consistency with line 506 of clientgui/ViewWork.cpp. svn path=/trunk/boinc/; revision=9060 --- api/graphics_impl.C | 4 ++-- checkin_notes | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/api/graphics_impl.C b/api/graphics_impl.C index 992d643066..f1be4422e8 100755 --- a/api/graphics_impl.C +++ b/api/graphics_impl.C @@ -241,8 +241,8 @@ bool throttled_app_render(int x, int y, double t) { void get_window_title(APP_INIT_DATA& aid, char* buf, int len) { if (aid.app_version) { snprintf(buf, len, - "%s version %d [workunit: %s]", - aid.app_name, aid.app_version, aid.wu_name + "%s version %.2f [workunit: %s]", + aid.app_name, aid.app_version/100.0, aid.wu_name ); } else { snprintf(buf, len, diff --git a/checkin_notes b/checkin_notes index 94fecd9a85..e0687d23b3 100755 --- a/checkin_notes +++ b/checkin_notes @@ -14381,3 +14381,13 @@ David 9 Dec 2005 prefs.inc user/ host_edit_action.php + +Bruce 10 Dec 2005 + - API: when app version number is shown in the title bar of + a graphics window, print it in the same format at the + client GUI, for example 4.29 rather than existing 429. + This is for consistency with line 506 of clientgui/ViewWork.cpp. + + api/ + graphics_impl.C +