[GME-commit] GMESRC/GME/Gme GMEView.cpp,1.133,1.134

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Fri Mar 12 17:16:14 CST 2004


Update of /var/lib/gme/GMESRC/GME/Gme
In directory braindrain:/tmp/cvs-serv16992

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.133
retrieving revision 1.134
diff -C2 -d -r1.133 -r1.134
*** GMEView.cpp	12 Mar 2004 23:05:50 -0000	1.133
--- GMEView.cpp	12 Mar 2004 23:16:12 -0000	1.134
***************
*** 31,34 ****
--- 31,35 ----
  static CViewList viewsToKill;
  
+ #define MIN_ZOOM_RECT 20 // the minimal size of zoomable rectangle
  /*
  int setZoomPercents[GME_ZOOM_LEVEL_NUM] = {
***************
*** 3539,3547 ****
  					tracker.GetTrueRect(&truerect);
  					truerect.NormalizeRect();
! //                    tracker.m_rect.NormalizeRect();
! 					if (truerect./*tracker.m_rect.*/IsRectEmpty())
  						ZoomIn(ppoint); 
  					else
! 						ZoomRect(truerect/*tracker.m_rect*/);
                  }
  				else
--- 3540,3547 ----
  					tracker.GetTrueRect(&truerect);
  					truerect.NormalizeRect();
! 					if (truerect.Height() <= MIN_ZOOM_RECT && truerect.Width() <= MIN_ZOOM_RECT)
  						ZoomIn(ppoint); 
  					else
! 						ZoomRect(truerect);
                  }
  				else



More information about the GME-commit mailing list