From 9265e2be2030c3442dde65a1e3fb2d8817261fe4 Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Fri, 22 Feb 2008 07:32:26 +0000 Subject: [PATCH] Mac SCR: Horizontaly center the text under the logo in screensaver svn path=/trunk/boinc/; revision=14776 --- checkin_notes | 5 ++++- clientscr/Mac_Saver_ModuleView.m | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/checkin_notes b/checkin_notes index 1dee7a00de..1a7a1caf0d 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1557,10 +1557,13 @@ David Feb 21 2008 sched/*.C Charlie Feb 21 2008 + - Mac SCR: Horizontaly center the text under the logo in screensaver. - Mac: Update GridRepublic branding scripts for new screensaver and to fix bugs when building under OS 10.5 and/or using PackageMaker V3 (XCode Tools V3). - + + clientscr/ + Mac_Saver_ModuleView.m mac_installer/ make_GridRepublic.sh release_GridRepublic.sh diff --git a/clientscr/Mac_Saver_ModuleView.m b/clientscr/Mac_Saver_ModuleView.m index a3727796aa..24a6269d94 100644 --- a/clientscr/Mac_Saver_ModuleView.m +++ b/clientscr/Mac_Saver_ModuleView.m @@ -55,7 +55,7 @@ bool isErased; #define TEXTBOXMINWIDTH 400.0 #define MINTEXTBOXHEIGHT 40.0 #define MAXTEXTBOXHEIGHT 300.0 -#define TEXTBOXTOPBORDER 10 +#define TEXTBOXTOPBORDER 15 #define SAFETYBORDER 20.0 #define MINDELTA 8 #define MAXDELTA 20 @@ -304,8 +304,8 @@ int signof(float x) { r.bottom = r.top + (int)MAXTEXTBOXHEIGHT; r.top += TEXTBOXTOPBORDER; // Add a few pixels space below image - TXNTextBoxOptionsData theOptions = {kTXNUseCGContextRefMask, kATSUStartAlignment, - kATSUNoJustification, 0, myContext }; + TXNTextBoxOptionsData theOptions = {kTXNUseCGContextRefMask | kTXNSetFlushnessMask, + kATSUCenterAlignment, kATSUNoJustification, 0, myContext }; cf_msg = CFStringCreateWithCString(NULL, msg, kCFStringEncodingMacRoman);