MCPcopy Create free account
hub / github.com/NetHack/NetHack / alignAD

Function alignAD

outdated/sys/mac/macmenu.c:786–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

784
785#if !TARGET_API_MAC_CARBON
786static void
787alignAD(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
802static void

Callers 1

mustGetMenuAlertsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected