This commit is contained in:
parent
6d6c4645dd
commit
2f68dceedd
10 changed files with 106 additions and 61 deletions
|
@ -309,18 +309,24 @@ BOOL RedrawFlag=FALSE;
|
|||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::MouseWheel(CMapEditView *View,UINT nFlags, short zDelta, CPoint &pt)
|
||||
void CCore::Zoom(CMapEditView *View,float Dst)
|
||||
{
|
||||
Vector3 Ofs;
|
||||
Ofs.Zero();
|
||||
if (zDelta>0)
|
||||
Ofs.z=+1.0f;
|
||||
else
|
||||
Ofs.z=-1.0f;
|
||||
|
||||
Ofs.z=Dst;
|
||||
UpdateView(View,Ofs);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::MouseWheel(CMapEditView *View,UINT nFlags, short zDelta, CPoint &pt)
|
||||
{
|
||||
if (zDelta>0)
|
||||
Zoom(View,+1.0f);
|
||||
else
|
||||
Zoom(View,+1.0f);
|
||||
}
|
||||
|
||||
/*****************************************************************************/
|
||||
void CCore::MouseMove(CMapEditView *View,UINT nFlags, CPoint &point)
|
||||
{
|
||||
|
@ -726,3 +732,6 @@ GString Path=FullPath.Dir();
|
|||
return(Path);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue