OGL improvements

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@677 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
1998-09-06 14:32:25 +00:00
parent 868a28262c
commit 2e5ed787e9
10 changed files with 99 additions and 57 deletions

View File

@@ -1583,9 +1583,10 @@ void wxShape::OnSizingBeginDragLeft(wxControlPoint* pt, double x, double y, int
wxClientDC dc(GetCanvas());
GetCanvas()->PrepareDC(dc);
/*
if (pt->m_eraseObject)
this->Erase(dc);
*/
dc.SetLogicalFunction(wxXOR);
@@ -1694,8 +1695,11 @@ void wxShape::OnSizingEndDragLeft(wxControlPoint* pt, double x, double y, int ke
this->Recompute();
this->ResetControlPoints();
this->Erase(dc);
/*
if (!pt->m_eraseObject)
this->Show(FALSE);
*/
this->SetSize(pt->controlPointDragEndWidth, pt->controlPointDragEndHeight);
@@ -1711,8 +1715,10 @@ void wxShape::OnSizingEndDragLeft(wxControlPoint* pt, double x, double y, int ke
else
theObject->Move(dc, pt->controlPointDragPosX, pt->controlPointDragPosY);
/*
if (!eraseIt)
theObject->Show(TRUE);
*/
// Recursively redraw links if we have a composite.
if (theObject->GetChildren().Number() > 0)