[GME-commit] GMESRC/GME/Gme GMEView.cpp,1.129,1.130
gme-commit at list.isis.vanderbilt.edu
gme-commit at list.isis.vanderbilt.edu
Thu Mar 11 16:25:55 CST 2004
Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv9579
Modified Files:
GMEView.cpp
Log Message:
zoom problem solved and enhanced
CVS User: bogyom
Index: GMEView.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/GMEView.cpp,v
retrieving revision 1.129
retrieving revision 1.130
diff -C2 -d -r1.129 -r1.130
*** GMEView.cpp 11 Mar 2004 18:22:21 -0000 1.129
--- GMEView.cpp 11 Mar 2004 22:25:52 -0000 1.130
***************
*** 5829,5839 ****
{
case ZOOM_WIDTH:
! m_zoomVal = 100*rect.Width()/s.cx;
break;
case ZOOM_HEIGHT:
! m_zoomVal = 100*rect.Height()/s.cy;
break;
case ZOOM_ALL:
! m_zoomVal = min(100*rect.Height()/s.cy, 100*rect.Width()/s.cx);
break;
}
--- 5829,5839 ----
{
case ZOOM_WIDTH:
! m_zoomVal = 100.*rect.Width()/s.cx;
break;
case ZOOM_HEIGHT:
! m_zoomVal = 100.*rect.Height()/s.cy;
break;
case ZOOM_ALL:
! m_zoomVal = min(100.*rect.Height()/s.cy, 100.*rect.Width()/s.cx);
break;
}
More information about the GME-commit
mailing list