|
From: Greg <evo...@us...> - 2005-12-19 20:31:54
|
Update of /cvsroot/evolutionlejeu/evolutionlejeu/Evolution/Sphinx In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10860/Evolution/Sphinx Modified Files: EControl.cpp EControl.h Log Message: ADD : Province fit the governor minimap (end) & some zoom improvements Index: EControl.cpp =================================================================== RCS file: /cvsroot/evolutionlejeu/evolutionlejeu/Evolution/Sphinx/EControl.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** EControl.cpp 17 Aug 2005 21:12:10 -0000 1.1 --- EControl.cpp 19 Dec 2005 20:31:38 -0000 1.2 *************** *** 88,95 **** void EControl::SetDimension( int w, int h ) { m_rect.bottom = m_rect.top + h; m_rect.right = m_rect.left + w; ! OnResize(); } --- 88,98 ---- void EControl::SetDimension( int w, int h ) { + int iOldHeight = m_rect.bottom - m_rect.top; + int iOldWidth= m_rect.right - m_rect.left; + m_rect.bottom = m_rect.top + h; m_rect.right = m_rect.left + w; ! OnResize( iOldWidth, iOldHeight ); } Index: EControl.h =================================================================== RCS file: /cvsroot/evolutionlejeu/evolutionlejeu/Evolution/Sphinx/EControl.h,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** EControl.h 18 Aug 2005 13:05:48 -0000 1.2 --- EControl.h 19 Dec 2005 20:31:38 -0000 1.3 *************** *** 124,128 **** virtual void OnCreate( ); virtual void OnPaint( OpenGl &gl, SDL_Rect rect ) {}; ! virtual void OnResize( ) {}; virtual void OnDrag( int dx, int dy ) {}; --- 124,128 ---- virtual void OnCreate( ); virtual void OnPaint( OpenGl &gl, SDL_Rect rect ) {}; ! virtual void OnResize( int iOldWidth, int iOldHeight ) {}; virtual void OnDrag( int dx, int dy ) {}; |