use ControlDefinitions.h and new APIs for Carbon for ValidRect. Doesn't affect normal builds.

This commit is contained in:
pinkerton%netscape.com 1999-05-10 23:13:16 +00:00
parent c55bc08694
commit 69b439dbe8

View File

@ -25,6 +25,10 @@
#include "nsColor.h"
#include "nsFontMetricsMac.h"
#if TARGET_CARBON
#include <ControlDefinitions.h>
#endif
//-------------------------------------------------------------------------
//
@ -142,7 +146,12 @@ PRBool nsMacControl::OnPaint(nsPaintEvent &aEvent)
::SetControlVisibility(mControl, isVisible, false);
::DrawOneControl(mControl);
#if TARGET_CARBON
Rect bounds;
::ValidWindowRect(mWindowPtr, ::GetControlBounds(mControl, &bounds));
#else
::ValidRect(&(*mControl)->contrlRect);
#endif
}
return PR_FALSE;
}