@@ -245,9 +245,9 @@ PLstrcmp(s1, s2)
245245 if ( res != 0 )
246246 return res ;
247247
248- if ( s1 < s2 )
248+ if ( s1 [ 0 ] < s2 [ 0 ] )
249249 return -1 ;
250- else if ( s1 > s2 )
250+ else if ( s1 [ 0 ] > s2 [ 0 ] )
251251 return 1 ;
252252 else
253253 return 0 ;
@@ -660,26 +660,27 @@ PyMac_RestoreMenuBar()
660660/*
661661** Our replacement about box
662662*/
663+
664+ #include "patchlevel.h"
665+
663666void
664667SIOUXDoAboutBox (void )
665668{
666669 DialogPtr theDialog ;
667- WindowRef theWindow ;
668- CGrafPtr thePort ;
670+ WindowPtr theWindow ;
669671 short item ;
670- short xpos , ypos , width , height , swidth , sheight ;
672+ short fontID ;
671673
672674 if ( (theDialog = GetNewDialog (ABOUT_ID , NULL , (WindowPtr )- 1 )) == NULL )
673675 return ;
674676 theWindow = GetDialogWindow (theDialog );
675- thePort = GetWindowPort (theWindow );
676- width = thePort -> portRect .right - thePort -> portRect .left ;
677- height = thePort -> portRect .bottom - thePort -> portRect .top ;
678- swidth = qd .screenBits .bounds .right - qd .screenBits .bounds .left ;
679- sheight = qd .screenBits .bounds .bottom - qd .screenBits .bounds .top - LMGetMBarHeight ();
680- xpos = (swidth - width )/2 ;
681- ypos = (sheight - height )/5 + LMGetMBarHeight ();
682- MoveWindow (theWindow , xpos , ypos , 0 );
677+ SetPortWindowPort (theWindow );
678+ GetFNum ("\pPython-Sans" , & fontID );
679+ if (fontID == 0 )
680+ fontID = kFontIDGeneva ;
681+ TextFont (fontID );
682+ TextSize (9 );
683+ ParamText (Pstring (PATCHLEVEL ), "\p" , "\p" , "\p" );
683684 ShowWindow (theWindow );
684685 ModalDialog (NULL , & item );
685686 DisposeDialog (theDialog );
0 commit comments