| 784 | |
| 785 | #if !TARGET_API_MAC_CARBON |
| 786 | static void |
| 787 | alignAD(Rect *pRct, short vExempt) |
| 788 | { |
| 789 | BitMap qbitmap; |
| 790 | |
| 791 | GetQDGlobalsScreenBits(&qbitmap); |
| 792 | (*pRct).right -= (*pRct).left; /* width */ |
| 793 | (*pRct).bottom -= (*pRct).top; /* height */ |
| 794 | (*pRct).left = (qbitmap.bounds.right - (*pRct).right) / 2; |
| 795 | (*pRct).top = (qbitmap.bounds.bottom - (*pRct).bottom - vExempt) / 2; |
| 796 | (*pRct).top += vExempt; |
| 797 | (*pRct).right += (*pRct).left; |
| 798 | (*pRct).bottom += (*pRct).top; |
| 799 | } |
| 800 | #endif |
| 801 | |
| 802 | static void |