Mac only change.

Making changes to make the mac toolbars no flash on mouse rollover or when playing an animated GIF


git-svn-id: svn://10.0.0.236/trunk@13018 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
saari%netscape.com
1998-10-16 21:29:55 +00:00
parent be78f27eea
commit 8c3d3311e8
3 changed files with 6 additions and 4 deletions

View File

@@ -35,7 +35,7 @@
// ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ
CBevelView::CBevelView(LStream *inStream)
: LView(inStream),
: LOffscreenView(inStream),
mBevelList(sizeof(SSubBevel)),
mBevelGrowIcon(true)
{

View File

@@ -30,7 +30,7 @@ typedef struct SSubBevel {
Rect cachedLocalFrame;
} SSubBevel;
class CBevelView : public LView
class CBevelView : public LOffscreenView
{
public:
enum { class_ID = 'BvVw' };

View File

@@ -65,8 +65,10 @@ void CPatternBevelView::DrawBeveledFill(void)
Point theAlignment;
CSharedPatternWorld::CalcRelativePoint(this, CSharedPatternWorld::eOrientation_Port, theAlignment);
CGrafPtr thePort = (CGrafPtr)GetMacPort();
//CGrafPtr thePort = (CGrafPtr)GetMacPort();
CGrafPtr thePort;
GetPort ( (GrafPtr*) &thePort );
StClipRgnState theClipSaver(mBevelRegion);
mPatternWorld->Fill(thePort, theFrame, theAlignment);
}