Mac SCR: Horizontaly center the text under the logo in screensaver

svn path=/trunk/boinc/; revision=14776
This commit is contained in:
Charlie Fenton 2008-02-22 07:32:26 +00:00
parent c77183e2dc
commit 9265e2be20
2 changed files with 7 additions and 4 deletions

View File

@ -1557,10 +1557,13 @@ David Feb 21 2008
sched/*.C sched/*.C
Charlie Feb 21 2008 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 - Mac: Update GridRepublic branding scripts for new screensaver and to
fix bugs when building under OS 10.5 and/or using PackageMaker V3 fix bugs when building under OS 10.5 and/or using PackageMaker V3
(XCode Tools V3). (XCode Tools V3).
clientscr/
Mac_Saver_ModuleView.m
mac_installer/ mac_installer/
make_GridRepublic.sh make_GridRepublic.sh
release_GridRepublic.sh release_GridRepublic.sh

View File

@ -55,7 +55,7 @@ bool isErased;
#define TEXTBOXMINWIDTH 400.0 #define TEXTBOXMINWIDTH 400.0
#define MINTEXTBOXHEIGHT 40.0 #define MINTEXTBOXHEIGHT 40.0
#define MAXTEXTBOXHEIGHT 300.0 #define MAXTEXTBOXHEIGHT 300.0
#define TEXTBOXTOPBORDER 10 #define TEXTBOXTOPBORDER 15
#define SAFETYBORDER 20.0 #define SAFETYBORDER 20.0
#define MINDELTA 8 #define MINDELTA 8
#define MAXDELTA 20 #define MAXDELTA 20
@ -304,8 +304,8 @@ int signof(float x) {
r.bottom = r.top + (int)MAXTEXTBOXHEIGHT; r.bottom = r.top + (int)MAXTEXTBOXHEIGHT;
r.top += TEXTBOXTOPBORDER; // Add a few pixels space below image r.top += TEXTBOXTOPBORDER; // Add a few pixels space below image
TXNTextBoxOptionsData theOptions = {kTXNUseCGContextRefMask, kATSUStartAlignment, TXNTextBoxOptionsData theOptions = {kTXNUseCGContextRefMask | kTXNSetFlushnessMask,
kATSUNoJustification, 0, myContext }; kATSUCenterAlignment, kATSUNoJustification, 0, myContext };
cf_msg = CFStringCreateWithCString(NULL, msg, kCFStringEncodingMacRoman); cf_msg = CFStringCreateWithCString(NULL, msg, kCFStringEncodingMacRoman);