mirror of https://github.com/BOINC/boinc.git
Mac SCR: Horizontaly center the text under the logo in screensaver
svn path=/trunk/boinc/; revision=14776
This commit is contained in:
parent
c77183e2dc
commit
9265e2be20
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue