[GME-commit] GMESRC/GME/Gme PannButton.cpp,1.1,1.2

gme-commit at list.isis.vanderbilt.edu gme-commit at list.isis.vanderbilt.edu
Mon Apr 26 05:16:16 CDT 2004


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

Modified Files:
	PannButton.cpp 
Log Message:
Minor fix in the panning window (refresh only if it is visible)

CVS User: volgy

Index: PannButton.cpp
===================================================================
RCS file: /var/lib/gme/GMESRC/GME/Gme/PannButton.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** PannButton.cpp	25 Mar 2004 20:06:35 -0000	1.1
--- PannButton.cpp	26 Apr 2004 09:16:12 -0000	1.2
***************
*** 60,65 ****
  	m_viewRect.top = (int)(vrect.top * ry);
  	m_viewRect.bottom = (int)(vrect.bottom * ry);
! 	Invalidate();
! 	UpdateWindow();
  }
  
--- 60,68 ----
  	m_viewRect.top = (int)(vrect.top * ry);
  	m_viewRect.bottom = (int)(vrect.bottom * ry);
! 	// the method can be called even if the panning window is not visible
! 	if (::IsWindow(GetSafeHwnd())) {
! 		Invalidate();
! 		UpdateWindow();
! 	}
  }
  



More information about the GME-commit mailing list